[PATCH] Catch errors with sigaddset(3) in sigaddset (sigrelse)
Garrett Cooper
yanegomi at gmail.com
Mon Jul 19 05:09:24 UTC 2010
sigrelse has the same problem as (*sigset) as far as not catching
sigaddset(3) errors is concerned.
Thanks,
-Garrett
Index: compat-43/sigcompat.c
===================================================================
--- compat-43/sigcompat.c (revision 210226)
+++ compat-43/sigcompat.c (working copy)
@@ -151,7 +151,8 @@
sigset_t set;
sigemptyset(&set);
- sigaddset(&set, sig);
+ if (sigaddset(&set, sig) == -1)
+ return (-1);
return (_sigprocmask(SIG_UNBLOCK, &set, NULL));
}
More information about the freebsd-hackers
mailing list