[PATCH] Catch errors with sigaddset(3) in sigaddset (sigrelse)
- From: Garrett Cooper <yanegomi@xxxxxxxxx>
- Date: Sun, 18 Jul 2010 22:09:23 -0700
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));
}
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"
- Prev by Date: Re: Missing files device_if.h and bus_if.h
- Next by Date: Fwd: [PATCH] Catch errors with sigaddset(3) in sigaddset (*sigset)
- Previous by thread: [PATCH] allow empty files creation with install
- Next by thread: Fwd: [PATCH] Catch errors with sigaddset(3) in sigaddset (*sigset)
- Index(es):