mirror of
https://repo.or.cz/socat.git
synced 2025-07-13 15:13:23 +00:00
fixed bugs where sub processes would become zombies because the master process did not catch SIGCHLD
This commit is contained in:
parent
c44985fb8d
commit
1f5165b765
13 changed files with 116 additions and 55 deletions
|
@ -399,9 +399,8 @@ int _xioopen_foxec(int xioflags, /* XIO_RDONLY etc. */
|
|||
/*0 if ((optpr = copyopts(*copts, GROUP_PROCESS)) == NULL)
|
||||
return STAT_RETRYLATER;*/
|
||||
retropt_bool(*copts, OPT_STDERR, &withstderr);
|
||||
if (Signal(SIGCHLD, childdied) == SIG_ERR) {
|
||||
Warn2("signal(SIGCHLD, %p): %s", childdied, strerror(errno));
|
||||
}
|
||||
|
||||
xiosetchilddied(); /* set SIGCHLD handler */
|
||||
|
||||
if (withfork) {
|
||||
const char *forkwaitstring;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue