int opt, option_index;
char *config_file = NULL;
SilcServer silcd;
+ struct sigaction sa;
silc_debug = FALSE;
if (ret == FALSE)
goto fail;
+ /* Ignore SIGPIPE */
+ sa.sa_handler = SIG_IGN;
+ sa.sa_flags = 0;
+ sigemptyset(&sa.sa_mask);
+ sigaction(SIGPIPE, &sa, NULL);
+
if (silc_debug == FALSE)
/* Before running the server, fork to background and set
both user and group no non-root */