#include <sys/types.h>
#include <sys/socket.h>
#include <sys/select.h>
-#include <sys/wait.h>
#include <errno.h>
#include <fcntl.h>
#include <signal.h>
{
unsigned int i = 0;
- /* Silently ignore this signal and wait for it. This stops zombies.
- We do this here instead of client.c so that we don't spam the log
- file with "waiting on select messages" */
- if (sig == SIGCHLD) {
- wait (0);
- return;
- }
-
/* Add a signal to our stack */
while (signals[i])
i++;
signal (SIGALRM, signal_handler);
signal (SIGTERM, signal_handler);
signal (SIGINT, signal_handler);
- signal (SIGCHLD, signal_handler);
+
+ /* We don't care about our childs exit codes right now */
+ signal (SIGCHLD, SIG_IGN);
memset (signals, 0, sizeof (signals));
}