From: Marcin Siodelski Date: Thu, 5 Feb 2015 19:26:05 +0000 (+0100) Subject: [3669] Corrected the warning message in the ProcessSpawn. X-Git-Tag: trac3712_base~13^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a7fe50be01d727446ce64bd84430ee30864b82af;p=thirdparty%2Fkea.git [3669] Corrected the warning message in the ProcessSpawn. --- diff --git a/src/lib/util/process_spawn.h b/src/lib/util/process_spawn.h index 84390c99dd..a5f593c2d2 100644 --- a/src/lib/util/process_spawn.h +++ b/src/lib/util/process_spawn.h @@ -48,12 +48,14 @@ typedef std::vector ProcessArgs; /// it. The exit code can be retrieved by the caller using the /// @c ProcessSpawn::getExitStatus method. /// -/// @warning It is not recommended to use multiple instances of the -/// @c ProcessSpawn classes at the same time, because each newly -/// created instance would replace the SIGCHLD handler. This means that -/// it would not be possible to gather the exit code of all but one -/// (newly created) process, because the SIGCHLD handler is responsible -/// for checking the exit code of the process. +/// @warning Only one instance of the @c ProcessSpawn class may exist +/// at the given time. Creating additional instance would cause an +/// attempt to register a new SIGCHLD signal handler and, as a +/// consequence, the new @c ProcessSpawn object will fail to create. +/// +/// @todo The SIGCHLD handling logic should be moved to the @c SignalSet +/// class so as multiple instances of the @c ProcessSpawn use the same +/// SIGCHLD signal handler. class ProcessSpawn { public: