From: Andre Noll Date: Sun, 20 Feb 2011 18:41:09 +0000 (+0100) Subject: para_write: Return proper error code. X-Git-Tag: v0.4.6~7^2~1 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=64a9cf5877ab9ecf6410596d657914f26830d3f7;hp=64a9cf5877ab9ecf6410596d657914f26830d3f7 para_write: Return proper error code. Currently the exit code of para_write is always the value returned by schedule(). This is zero unless the call to select() fails, usually does not happen, so errors resulting from the writers do not cause para_write to exit with a non-zero exit code. In particular, para_write exits successfully if the underlying writer(s) nodes could not open their sound device or unregistered their task due to other errors. Fix this by investigating each writer node's t->error value after schedule() has returned. If this value does not correspond to an end of file condition, the strerror text of this error code is written to stderr, and para_write exits non-zero. ---