Commit 5878fd30 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Handle EINTR from sigwait

parent a73ea66e
......@@ -24,6 +24,7 @@
#include <signal.h>
#include <time.h>
#include <assert.h>
#include <vlc_common.h>
#include <vlc_plugin.h>
......@@ -100,8 +101,15 @@ static void *SigThread (void *data)
do
{
sigwait (&set, &signum);
switch (sigwait (&set, &signum))
{
case EINTR:
continue;
case 0:
break;
default:
assert (0);
}
#ifdef __APPLE__
/* In Mac OS X up to 10.5 sigwait (among others) is not a pthread
* cancellation point */
......
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