diff options
Diffstat (limited to 'src/frontends/osx/charon-xpc/charon-xpc.c')
-rw-r--r-- | src/frontends/osx/charon-xpc/charon-xpc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/frontends/osx/charon-xpc/charon-xpc.c b/src/frontends/osx/charon-xpc/charon-xpc.c index 5b8f98e25..0d8f0f455 100644 --- a/src/frontends/osx/charon-xpc/charon-xpc.c +++ b/src/frontends/osx/charon-xpc/charon-xpc.c @@ -88,6 +88,10 @@ static int run() sig = sigwaitinfo(&set, NULL); if (sig == -1) { + if (errno == EINTR) + { /* ignore signals we didn't wait for */ + continue; + } DBG1(DBG_DMN, "waiting for signal failed: %s", strerror(errno)); return 1; } @@ -101,9 +105,6 @@ static int run() DBG1(DBG_DMN, "signal of type SIGTERM received. Shutting down"); charon->bus->alert(charon->bus, ALERT_SHUTDOWN_SIGNAL, sig); return 0; - default: - DBG1(DBG_DMN, "unknown signal %d received. Ignored", sig); - break; } } } |