Commit 9b758553 authored by Philipp Schafft's avatar Philipp Schafft 🦁

Cleanup: cleanup related to signal() on _WIN32

parent c0320b08
......@@ -79,7 +79,9 @@ void *ices_instance_output(void *arg)
ref_buffer *in, *out;
/* What is this for?? */
#ifndef _WIN32
signal(SIGPIPE, signal_hup_handler);
#endif
while(1) {
in = instance_wait_for_data(instance);
......
......@@ -57,9 +57,8 @@ void signal_hup_handler(int signum)
signal(SIGHUP, signal_hup_handler);
}
#endif
void signal_int_handler(int signum)
static void signal_int_handler(int signum)
{
(void)signum;
......@@ -75,8 +74,6 @@ void signal_int_handler(int signum)
}
}
#ifndef _WIN32
void signals_setup(void)
{
signal(SIGINT, signal_int_handler);
......@@ -85,5 +82,3 @@ void signals_setup(void)
signal(SIGPIPE, SIG_IGN);
}
#endif
......@@ -17,10 +17,12 @@
#include <signal.h>
void signal_usr1_handler(int signum);
#ifndef _WIN32
void signal_hup_handler(int signum);
void signal_int_handler(int signum);
void signals_setup(void);
#endif
#endif
......
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