unix/Signalhandlers: throw exception instead of raising fatal error

This commit is contained in:
Max Kellermann 2017-08-11 09:37:30 +02:00
parent 6d43e70a93
commit d3fd89552f

View File

@ -26,7 +26,7 @@
#include "Log.hxx"
#include "LogInit.hxx"
#include "event/Loop.hxx"
#include "system/FatalError.hxx"
#include "system/Error.hxx"
#include "util/Domain.hxx"
#include <signal.h>
@ -44,7 +44,7 @@ static void
x_sigaction(int signum, const struct sigaction *act)
{
if (sigaction(signum, act, NULL) < 0)
FatalSystemError("sigaction() failed");
throw MakeErrno("sigaction() failed");
}
static void