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

@@ -383,7 +383,7 @@ main( argc, argv )
sigemptyset(&svec.sa_mask);
svec.sa_flags = 0;
svec.sa_handler = handle_SIGCLD;
(void) sigaction(SIGCLD, &svec, (struct sigaction *) NULL);
(void) sigaction(SIGCHLD, &svec, (struct sigaction *) NULL);
/*
* After this point, we need to trap all X and XIO errors.

View File

@@ -55,7 +55,7 @@ static void block_SIGCLD( void )
int rtn;
sigemptyset( &newset );
sigaddset( &newset, SIGCLD );
sigaddset( &newset, SIGCHLD );
rtn = sigprocmask( SIG_BLOCK, &newset, (sigset_t *) NULL );
}
@@ -65,7 +65,7 @@ static void unblock_SIGCLD( void )
int rtn;
sigemptyset( &newset );
sigaddset( &newset, SIGCLD );
sigaddset( &newset, SIGCHLD );
rtn = sigprocmask( SIG_UNBLOCK, &newset, (sigset_t *) NULL );
}