diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/client.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client.c b/src/client.c index 03ff259..2784987 100644 --- a/src/client.c +++ b/src/client.c @@ -288,6 +288,11 @@ void client_main(int fd, struct sockaddr_in *addr, int total, int to, int from) output_locked = 0; + struct sigaction sa; + sa.sa_handler = SIG_DFL; + if(sigaction(SIGPIPE, &sa, NULL) < 0) + error("sigaction"); + telnet_init(); char *ip = inet_ntoa(addr->sin_addr); |