diff options
Diffstat (limited to 'contrib/llvm/lib/System/Unix/Program.inc')
-rw-r--r-- | contrib/llvm/lib/System/Unix/Program.inc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/contrib/llvm/lib/System/Unix/Program.inc b/contrib/llvm/lib/System/Unix/Program.inc index 358415f..0209f5a 100644 --- a/contrib/llvm/lib/System/Unix/Program.inc +++ b/contrib/llvm/lib/System/Unix/Program.inc @@ -310,12 +310,9 @@ Program::Wait(unsigned secondsToWait, // fact of having a handler at all causes the wait below to return with EINTR, // unlike if we used SIG_IGN. if (secondsToWait) { -#ifndef __HAIKU__ - Act.sa_sigaction = 0; -#endif + memset(&Act, 0, sizeof(Act)); Act.sa_handler = TimeOutHandler; sigemptyset(&Act.sa_mask); - Act.sa_flags = 0; sigaction(SIGALRM, &Act, &Old); alarm(secondsToWait); } |