summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEgbert Eich <eich@suse.de>2004-07-30 18:40:36 +0000
committerEgbert Eich <eich@suse.de>2004-07-30 18:40:36 +0000
commit5ed0aefc67e86abaddf1b6bffdc832996b86fb46 (patch)
tree5421497ae43950b9bc83fdb207fab44f7dea228a
parentd380647739e4767da69edc44bbb441b3b9554b03 (diff)
Fixed typo in a comment.
Deleted bogus comment. Added debugging support.
-rw-r--r--hw/xfree86/os-support/shared/sigio.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/hw/xfree86/os-support/shared/sigio.c b/hw/xfree86/os-support/shared/sigio.c
index fbab2a517..7bcb93a0b 100644
--- a/hw/xfree86/os-support/shared/sigio.c
+++ b/hw/xfree86/os-support/shared/sigio.c
@@ -259,17 +259,25 @@ int
xf86BlockSIGIO (void)
{
sigset_t set, old;
-
+ int ret;
+
sigemptyset (&set);
sigaddset (&set, SIGIO);
sigprocmask (SIG_BLOCK, &set, &old);
- return sigismember (&old, SIGIO);
+ ret = sigismember (&old, SIGIO);
+#ifdef DEBUG
+ ErrorF("%i = xf86BlockSIGIO()\n",ret);
+#endif
+ return ret;
}
void
xf86UnblockSIGIO (int wasset)
{
sigset_t set;
+#ifdef DEBUG
+ ErrorF("xf86UnblockSIGIO(%i)\n",wasset);
+#endif
if (!wasset)
{