* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- *
- * $Id: ircd_signal.c 6 2005-09-10 01:02:21Z nenolod $
*/
#include "stdinc.h"
#include "client.h"
#include "send.h"
+#ifndef _WIN32
+
+#include <sys/types.h>
+#include <sys/wait.h>
+
/*
* dummy_handler - don't know if this is really needed but if alarm is still
* being used we probably will
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();
}
}
sigprocmask(SIG_UNBLOCK, &sigs, NULL);
}
+
+#else
+void
+setup_signals()
+{
+/* this is a stub for mingw32 */
+}
+
+void
+setup_reboot_signals()
+{
+/* this is a stub for mingw32 */
+}
+#endif