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:
Jon Trulson
2012-08-09 12:24:56 -06:00
parent 0d2f7866ac
commit 686bcfadc7
7 changed files with 16 additions and 16 deletions

View File

@@ -538,7 +538,7 @@ InitializeSignalHandling( void )
sigemptyset(&svec.sa_mask);
svec.sa_flags = 0;
svec.sa_handler = SigCld;
(void) sigaction(SIGCLD, &svec, (struct sigaction *) NULL);
(void) sigaction(SIGCHLD, &svec, (struct sigaction *) NULL);
/*
* "Urgent Signal" handlers
@@ -667,7 +667,7 @@ ExecuteCommand (
svec.sa_handler = SIG_DFL;
/* Normal */
(void) sigaction(SIGCLD, &svec, (struct sigaction *) NULL);
(void) sigaction(SIGCHLD, &svec, (struct sigaction *) NULL);
/* Urgent */
(void) sigaction(SIGTERM, &svec, (struct sigaction *) NULL);