Commit Diff


commit - ef3dbf96eb977c5296e092c6a48f8a3ca51598e2
commit + 755f54b1501334d827b5c30c03b4551ebb5cbe0d
blob - d03692a2e2cc17539b2ec35c44d7a881977f2af2
blob + 7d65510e906ad121dd97cbe817d4bca1a3f3a7ca
--- src/ngircd/sighandlers.c
+++ 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
 }