FreeCalypso > hg > freecalypso-sw
changeset 179:ebfa9657d03d
rvinterf: ignore SIGPIPE
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Sat, 23 Nov 2013 22:21:20 +0000 |
parents | 7ab6b29e76bb |
children | 59ee5817b194 |
files | rvinterf/lowlevel/rvifmain.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/rvinterf/lowlevel/rvifmain.c Sat Nov 23 22:15:16 2013 +0000 +++ b/rvinterf/lowlevel/rvifmain.c Sat Nov 23 22:21:20 2013 +0000 @@ -7,6 +7,7 @@ #include <stdio.h> #include <stdlib.h> #include <unistd.h> +#include <signal.h> #include <time.h> #include "../pktmux.h" #include "../localsock.h" @@ -85,6 +86,7 @@ exit(0); } } + signal(SIGPIPE, SIG_IGN); for (;;) { FD_ZERO(&fds); FD_SET(target_fd, &fds);