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: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2020-03-12 16:23:25 -07:00
parent 4b57b7f5a5
commit 69a51e12c9
No known key found for this signature in database
GPG Key ID: 36D31CFA845F0E3B
5 changed files with 5 additions and 6 deletions

View File

@ -38,13 +38,12 @@
#include <algorithm>
#include <cassert>
#include <csignal>
#ifdef USE_SIGNALFD
#include <pthread.h>
#endif
#include <signal.h>
class SignalMonitor final : private SocketMonitor {
#ifdef USE_SIGNALFD
SignalFD fd;

View File

@ -38,7 +38,7 @@
#include <sys/types.h>
#ifdef __linux__
#include <signal.h>
#include <csignal>
#endif
#ifdef _WIN32

View File

@ -32,7 +32,7 @@
#include "UniqueFileDescriptor.hxx"
#include <signal.h>
#include <csignal>
/**
* A class that wraps signalfd().

View File

@ -32,8 +32,8 @@
#include <fcntl.h>
#ifndef _WIN32
#include <csignal>
#include <sys/wait.h>
#include <signal.h>
#include <pwd.h>
#include <grp.h>
#endif

View File

@ -28,7 +28,7 @@
#include "system/Error.hxx"
#include "util/Domain.hxx"
#include <signal.h>
#include <csignal>
static constexpr Domain signal_handlers_domain("signal_handlers");