[Csync2] actions are incorrectly run on local host, possible problem with signal(SIGCHLD, SIG_IGN)

Art -kwaak- van Breemen ard+csync2 at telegraafnet.nl
Fri Jul 11 16:34:24 CEST 2008


On Thu, Jul 10, 2008 at 11:05:52AM -0500, Matt Callaway wrote:
>   signal(SIGCHLD, SIG_IGN);

In server mode, csync2 forks and forgets per new connection.
So within the fork loop, the SIGCHLD signal must be restored.
I think something like:
	signal(SIGPIPE, SIG_DFL);
	signal(SIGCHLD, SIG_DFL);
must happen in the if(!fork()) { } to restore signal behaviour,
or at least just before the execve of the command.


More information about the Csync2 mailing list