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
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);
sigfillset(&act.sa_mask);
act.sa_flags = 0;
act.sa_handler = SigcldHndlr;
- sigaction(SIGCLD, &act, (struct sigaction *)NULL);
+ sigaction(SIGCHLD, &act, (struct sigaction *)NULL);
}
}
/*
* Is this really necessary?
*/
- sigaction(SIGCLD, &act, (struct sigaction *)NULL);
+ sigaction(SIGCHLD, &act, (struct sigaction *)NULL);
}
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.
int rtn;
sigemptyset( &newset );
- sigaddset( &newset, SIGCLD );
+ sigaddset( &newset, SIGCHLD );
rtn = sigprocmask( SIG_BLOCK, &newset, (sigset_t *) NULL );
}
int rtn;
sigemptyset( &newset );
- sigaddset( &newset, SIGCLD );
+ sigaddset( &newset, SIGCHLD );
rtn = sigprocmask( SIG_UNBLOCK, &newset, (sigset_t *) NULL );
}
{
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 */
setegid(smGD.runningGID);
#endif
#endif
-#ifdef __osf__
+#if defined(__osf__) || defined(CSRG_BASED)
setsid();
#else
(void) setpgrp();
_DtEnvControl(DT_ENV_RESTORE_PRE_DT);
-#ifdef __osf__
+#if defined(__osf__) || defined(CSRG_BASED)
setsid();
#else
(void)setpgrp();
#endif
_DtEnvControl(DT_ENV_RESTORE_PRE_DT);
-#ifdef __osf__
+#if defined(__osf__) || defined(CSRG_BASED)
setsid();
#else
(void)setpgrp();
/*
* Disassociate from parent
*/
-#ifdef __osf__
+#if defined(__osf__) || defined(CSRG_BASED)
setsid();
#else
setpgrp();
#ifdef WSM
-#if (defined(USL) || defined(__uxp__) || defined(linux)) && !defined(_NFILE)
+#if (defined(USL) || defined(__uxp__) || defined(linux) || defined(CSRG_BASED)) && !defined(_NFILE)
#define _NFILE FOPEN_MAX
#endif
#define CLOSE_FILES_ON_EXEC() \
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);
}