diff options
author | Egbert Eich <eich@suse.de> | 2004-07-30 18:40:36 +0000 |
---|---|---|
committer | Egbert Eich <eich@suse.de> | 2004-07-30 18:40:36 +0000 |
commit | 5ed0aefc67e86abaddf1b6bffdc832996b86fb46 (patch) | |
tree | 5421497ae43950b9bc83fdb207fab44f7dea228a | |
parent | d380647739e4767da69edc44bbb441b3b9554b03 (diff) |
Fixed typo in a comment.
Deleted bogus comment.
Added debugging support.
-rw-r--r-- | hw/xfree86/os-support/shared/sigio.c | 12 |
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) { |