Use SIGCHLD rather than SIGCLD.
Patch from Pascal Stumpf <Pascal.Stumpf@cubes.de> The official POSIX name for this signal is SIGCHLD. Linux probably has SIGCLD only for SysV compatibility, but BSD does not.
This commit is contained in:
@@ -7504,11 +7504,11 @@ SystemCmd (char *pchCmd)
|
||||
sa.sa_flags = 0;
|
||||
sa.sa_handler = SIG_DFL;
|
||||
|
||||
(void) sigaction (SIGCLD, &sa, &osa);
|
||||
(void) sigaction (SIGCHLD, &sa, &osa);
|
||||
|
||||
system (pchCmd);
|
||||
|
||||
(void) sigaction (SIGCLD, &osa, (struct sigaction *) 0);
|
||||
(void) sigaction (SIGCHLD, &osa, (struct sigaction *) 0);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user