mirror of
https://github.com/sheumann/hush.git
synced 2024-12-23 05:29:58 +00:00
Replace call to sigsuspend() (not in GNO) with sigpause().
This commit is contained in:
parent
42c6e9e095
commit
a60c64d6c7
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user