Commit 53b56e5a authored by Rafaël Carré's avatar Rafaël Carré

Yes, sigwait() can fail, so don't ignore its return value

parent 87bf1032
......@@ -236,7 +236,8 @@ static void *SigHandler (void *data)
for (;;)
{
int i_signal, state;
(void)sigwait (&fullset, &i_signal);
if( sigwait (&fullset, &i_signal) != 0 )
continue;
#ifdef __APPLE__
/* In Mac OS X up to 10.4.8 sigwait (among others) is not a pthread
......
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