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

@@ -473,11 +473,11 @@ SystemCmd (char *pchCmd)
{
void (*signalHandler) ();
signalHandler = (void (*)())signal (SIGCLD, SIG_DFL);
signalHandler = (void (*)())signal (SIGCHLD, SIG_DFL);
system (pchCmd);
signal (SIGCLD, signalHandler);
signal (SIGCHLD, signalHandler);
} /* END OF FUNTION SystemCmd */
@@ -896,7 +896,7 @@ RestoreResources( Boolean errorHandlerInstalled, ... )
setegid(smGD.runningGID);
#endif
#endif
#ifdef __osf__
#if defined(__osf__) || defined(CSRG_BASED)
setsid();
#else
(void) setpgrp();
@@ -3607,7 +3607,7 @@ StartLocalClient (
_DtEnvControl(DT_ENV_RESTORE_PRE_DT);
#ifdef __osf__
#if defined(__osf__) || defined(CSRG_BASED)
setsid();
#else
(void)setpgrp();
@@ -3843,7 +3843,7 @@ ForkWM( void )
#endif
_DtEnvControl(DT_ENV_RESTORE_PRE_DT);
#ifdef __osf__
#if defined(__osf__) || defined(CSRG_BASED)
setsid();
#else
(void)setpgrp();
@@ -3928,7 +3928,7 @@ KillParent( void )
/*
* Disassociate from parent
*/
#ifdef __osf__
#if defined(__osf__) || defined(CSRG_BASED)
setsid();
#else
setpgrp();