#include "s_conf.h"
#include "client.h"
#include "send.h"
+#include <sys/types.h>
+#include <sys/wait.h>
/*
* dummy_handler - don't know if this is really needed but if alarm is still
/*
* sigterm_handler - exit the server
*/
+static void
+sigterm_handler(int sig) __attribute__((noreturn));
+
static void
sigterm_handler(int sig)
{
static void
sighup_handler(int sig)
{
- dorehash = 1;
+ dorehash = true;
}
/*
static void
sigusr1_handler(int sig)
{
- doremotd = 1;
+ doremotd = true;
}
static void
sigusr2_handler(int sig)
{
- dorehashbans = 1;
+ dorehashbans = true;
}
/*
static void
sigint_handler(int sig)
{
- static int restarting = 0;
+ static bool restarting = false;
if(server_state_foreground)
{
else
{
ilog(L_MAIN, "Server Restarting on SIGINT");
- if(restarting == 0)
+ if(!restarting)
{
- restarting = 1;
+ restarting = true;
server_reboot();
}
}