
17 Aug
2006
17 Aug
'06
12:26 p.m.
Oliver.Kowalke@qimonda.com wrote:
On POSIX the implementation would look like:
// while loop inside of signal handling function (SIGCHLD) while ( true) { pid_t pid; int stat = 0, opts = WNOHANG | WUNTRACED; #ifdef WCONTINUED opts |= WCONTINUED; #endif pid = ::waitpid( -1, & stat, opts); if ( pid == 0) break; else if ( pid < 0) throw sys::system_error( sys::error_code( errno, sys::errno_ec) );
Is throwing an exception in a signal handler supported by POSIX ? Davide Bolcioni -- There is no place like /home.