unix/Signalhandlers: throw exception instead of raising fatal error
This commit is contained in:
parent
6d43e70a93
commit
d3fd89552f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user