Commit 0363b86d authored by Brad King's avatar Brad King
Browse files

COMP: Use SA_RESTART only if it is defined for the current platform. This...

COMP: Use SA_RESTART only if it is defined for the current platform.  This partially addresses bug#3556.
parent 43f5d0b4
......@@ -2201,7 +2201,10 @@ static int kwsysProcessesAdd(kwsysProcess* cp)
struct sigaction newSigChldAction;
memset(&newSigChldAction, 0, sizeof(struct sigaction));
newSigChldAction.sa_sigaction = kwsysProcessesSignalHandler;
newSigChldAction.sa_flags = SA_NOCLDSTOP | SA_RESTART | SA_SIGINFO;
newSigChldAction.sa_flags = SA_NOCLDSTOP | SA_SIGINFO;
#ifdef SA_RESTART
newSigChldAction.sa_flags |= SA_RESTART;
#endif
while((sigaction(SIGCHLD, &newSigChldAction,
&kwsysProcessesOldSigChldAction) < 0) &&
(errno == EINTR));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment