]> git.eshelyaron.com Git - emacs.git/commitdiff
(sigunblock): Define.
authorGerd Moellmann <gerd@gnu.org>
Wed, 28 Jun 2000 11:51:19 +0000 (11:51 +0000)
committerGerd Moellmann <gerd@gnu.org>
Wed, 28 Jun 2000 11:51:19 +0000 (11:51 +0000)
src/s/isc4-0.h
src/s/sco5.h

index 53d0c07aea5f7edf4d22e779be63af4cd8952068..ccd6cb0627f68581fb2f028ecc7e57798205c4de 100644 (file)
@@ -23,5 +23,8 @@
 #define sigblock(sig)                                  \
      (sigprocmask_set = SIGEMPTYMASK | (sig),          \
       sigprocmask (SIG_BLOCK, &sigprocmask_set, NULL))
+#define sigunblock(sig)                                                \
+     (sigprocmask_set = SIGFULLMASK & ~(sig),                  \
+      sigprocmask (SIG_SETMASK, &sigprocmask_set, NULL))
 #endif
 #endif /* not POSIX_SIGNALS */
index 89168b2068ea91b9ecdb85c30d48c97bfc0df110..863f303f7a70154bdb4f22274a3fd74125a84651 100644 (file)
@@ -135,6 +135,9 @@ Boston, MA 02111-1307, USA.  */
 #define sigblock(sig)                                  \
      (sigprocmask_set = SIGEMPTYMASK | (sig),          \
       sigprocmask (SIG_BLOCK, &sigprocmask_set, NULL))
+#define sigunblock(sig)                                                \
+     (sigprocmask_set = SIGFULLMASK & ~(sig),                  \
+      sigprocmask (SIG_SETMASK, &sigprocmask_set, NULL))
 
 #ifndef PENDING_OUTPUT_COUNT
 #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__ptr - (FILE)->__base)