[PATCH] os: warn about releasing signals inside signal handler
Peter Hutterer
peter.hutterer at who-t.net
Tue Jul 31 19:06:30 PDT 2012
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
os/utils.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/os/utils.c b/os/utils.c
index d902523..cb37162 100644
--- a/os/utils.c
+++ b/os/utils.c
@@ -1234,6 +1234,8 @@ OsReleaseSIGIO(void)
void
OsReleaseSignals(void)
{
+ BUG_WARN(inSignalContext);
+
#ifdef SIG_BLOCK
if (--BlockedSignalCount == 0) {
sigprocmask(SIG_SETMASK, &PreviousSignalMask, 0);
--
1.7.10.4
More information about the xorg-devel
mailing list