From a60c64d6c708f744fcea9ba8f1a948a3025cf1df Mon Sep 17 00:00:00 2001 From: Stephen Heumann Date: Tue, 4 Nov 2014 15:41:05 -0600 Subject: [PATCH] Replace call to sigsuspend() (not in GNO) with sigpause(). --- shell/hush.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shell/hush.c b/shell/hush.c index 30c119447..b6a376da0 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -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);