Module: ngircd.git Branch: master Commit: 755f54b1501334d827b5c30c03b4551ebb5cbe0d URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=755f5...
Author: Florian Westphal fw@strlen.de Date: Sat Sep 11 11:33:27 2010 +0200
signalhandlers: add fallback to deprecated sysv API
---
src/ngircd/sighandlers.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/ngircd/sighandlers.c b/src/ngircd/sighandlers.c index d03692a..7d65510 100644 --- a/src/ngircd/sighandlers.c +++ b/src/ngircd/sighandlers.c @@ -45,6 +45,8 @@ static void Signal_Block(int sig) sigaddset(&set, sig);
sigprocmask(SIG_BLOCK, &set, NULL); +#else + sigblock(sig); #endif }
@@ -58,6 +60,9 @@ static void Signal_Unblock(int sig) sigaddset(&set, sig);
sigprocmask(SIG_UNBLOCK, &set, NULL); +#else + int old = sigblock(0) & ~sig; + sigsetmask(old); #endif }
ngircd-commits@lists.barton.de