stun

simple point to point tunnel
git clone git://git.2f30.org/stun.git
Log | Files | Refs | README

commit efe80acb840c5b6fcbf17163553587f393897cb1
parent 6a44a8fa3ba3619a945c575d18ed8aef75d894a4
Author: sin <sin@2f30.org>
Date:   Thu Apr 28 10:13:45 +0100

Ignore SIGPIPE only in the child

Diffstat:
stun.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/stun.c b/stun.c @@ -34,6 +34,8 @@ chldrun(void) { int devfd, listenfd, netfd; + signal(SIGPIPE, SIG_IGN); + setproctitle("network: %s", netconfig.name); /* initialize tun/tap device */ @@ -141,7 +143,6 @@ main(int argc, char *argv[]) if (setrlimit(RLIMIT_CORE, &rlim) < 0) fatal("setrlimit RLIMIT_CORE"); - signal(SIGPIPE, SIG_IGN); if (!debug && daemon(1, 0) < 0) fatal("daemon");