From 8767ab02760f59c9b9ae7290a2e78da9f61c9680 Mon Sep 17 00:00:00 2001 From: Shibby Date: Fri, 22 Feb 2013 18:37:22 +0100 Subject: [PATCH] Miniupnpd: fix SIGUSR2 problem --- release/src/router/miniupnpd/miniupnpd.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/release/src/router/miniupnpd/miniupnpd.c b/release/src/router/miniupnpd/miniupnpd.c index 76c2991e36..1ffe972604 100644 --- a/release/src/router/miniupnpd/miniupnpd.c +++ b/release/src/router/miniupnpd/miniupnpd.c @@ -1296,8 +1296,11 @@ init(int argc, char * * argv, struct runtime_vars * v) return 1; } - sa.sa_handler = SIG_IGN; - if(sigaction(SIGPIPE, &sa, NULL) < 0) + // zzz + sa.sa_handler = sigusr2; + sigaction(SIGUSR2, &sa, NULL); + + if(signal(SIGPIPE, SIG_IGN) == SIG_ERR) { syslog(LOG_ERR, "Failed to ignore SIGPIPE signals"); } -- 2.11.4.GIT