# HG changeset patch # User Mychaela Falconia # Date 1500248549 0 # Node ID 348c29b7d02a7f3cada44485cc889a9b6af90433 # Parent 2bed7b024f64fe1673d149da0aa35379ca496905 fc-cmu200d: ignore SIGPIPE so we don't exit if a client terminates while we are processing a command diff -r 2bed7b024f64 -r 348c29b7d02a cmu200/main.c --- a/cmu200/main.c Sun Jul 16 00:00:46 2017 +0000 +++ b/cmu200/main.c Sun Jul 16 23:42:29 2017 +0000 @@ -5,6 +5,7 @@ #include #include #include +#include int target_fd; @@ -50,6 +51,7 @@ setlinebuf(stdout); /* to allow logging with tee */ init_cmu200(); create_listener_socket(); + signal(SIGPIPE, SIG_IGN); for (;;) { get_socket_connection(); handle_session();