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:
@@ -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.
|
||||
|
||||
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user