FreeCalypso > hg > freecalypso-sw
diff rvinterf/lowlevel/rvifmain.c @ 179:ebfa9657d03d
rvinterf: ignore SIGPIPE
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Sat, 23 Nov 2013 22:21:20 +0000 |
parents | 7ab6b29e76bb |
children | f5f8776f7c66 |
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);