Replace call to sigsuspend() (not in GNO) with sigpause().

This commit is contained in:
Stephen Heumann 2014-11-04 15:41:05 -06:00
parent 42c6e9e095
commit a60c64d6c7

View File

@ -9264,7 +9264,12 @@ static int FAST_FUNC builtin_wait(char **argv)
//sig = sigwaitinfo(&allsigs, NULL);
/* It is vitally important for sigsuspend that SIGCHLD has non-DFL handler! */
/* Note: sigsuspend invokes signal handler */
#ifndef __GNO__
sigsuspend(&oldset);
#else
// Relies on sigset_t being a mask in suitable format for sigpause
sigpause(oldset);
#endif
restore:
sigprocmask(SIG_SETMASK, &oldset, NULL);