summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.c b/main.c
index c3f7ae2..80abea9 100644
--- a/main.c
+++ b/main.c
@@ -16,12 +16,15 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include <stdlib.h>
+#include <signal.h>
#include "server.h"
#define SERVER_PORT 6667
int main() {
+ sigaction(SIGPIPE, &(struct sigaction){SIG_IGN}, NULL);
+
server_t server = server_create(SERVER_PORT);
server_listen(&server);