replace signal.h with csignal.h

The former was deprecated with C++14. The standard says they are the same: The contents of the header<csignal>are the same as the C standard library header<signal.h>. Signed-off-by: 's avatarRosen Penev <rosenp@gmail.com>
parent 4b57b7f5
...@@ -38,13 +38,12 @@ ...@@ -38,13 +38,12 @@
#include <algorithm> #include <algorithm>
#include <cassert> #include <cassert>
#include <csignal>
#ifdef USE_SIGNALFD #ifdef USE_SIGNALFD
#include <pthread.h> #include <pthread.h>
#endif #endif
#include <signal.h>
class SignalMonitor final : private SocketMonitor { class SignalMonitor final : private SocketMonitor {
#ifdef USE_SIGNALFD #ifdef USE_SIGNALFD
SignalFD fd; SignalFD fd;
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
#include <sys/types.h> #include <sys/types.h>
#ifdef __linux__ #ifdef __linux__
#include <signal.h> #include <csignal>
#endif #endif
#ifdef _WIN32 #ifdef _WIN32
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
#include "UniqueFileDescriptor.hxx" #include "UniqueFileDescriptor.hxx"
#include <signal.h> #include <csignal>
/** /**
* A class that wraps signalfd(). * A class that wraps signalfd().
......
...@@ -32,8 +32,8 @@ ...@@ -32,8 +32,8 @@
#include <fcntl.h> #include <fcntl.h>
#ifndef _WIN32 #ifndef _WIN32
#include <csignal>
#include <sys/wait.h> #include <sys/wait.h>
#include <signal.h>
#include <pwd.h> #include <pwd.h>
#include <grp.h> #include <grp.h>
#endif #endif
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include "system/Error.hxx" #include "system/Error.hxx"
#include "util/Domain.hxx" #include "util/Domain.hxx"
#include <signal.h> #include <csignal>
static constexpr Domain signal_handlers_domain("signal_handlers"); static constexpr Domain signal_handlers_domain("signal_handlers");
......
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