(input_available_signal) [POSIX_SIGNALS]:
authorRichard M. Stallman <rms@gnu.org>
Wed, 4 Sep 1996 15:02:52 +0000 (15:02 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 4 Sep 1996 15:02:52 +0000 (15:02 +0000)
Don't reestablish handler.
(interrupt_signal) [POSIX_SIGNALS]: Likewise.

src/keyboard.c

index b1578a3..f0a95c3 100644 (file)
@@ -4907,7 +4907,7 @@ input_available_signal (signo)
   extern int select_alarmed;
 #endif
 
-#ifdef USG
+#if defined (USG) && !defined (POSIX_SIGNALS)
   /* USG systems forget handlers when they are used;
      must reestablish each time */
   signal (signo, input_available_signal);
@@ -7364,7 +7364,7 @@ interrupt_signal (signalnum)      /* If we don't have an argument, */
   /* Must preserve main program's value of errno.  */
   int old_errno = errno;
 
-#ifdef USG
+#if defined (USG) && !defined (POSIX_SIGNALS)
   if (!read_socket_hook && NILP (Vwindow_system))
     {
       /* USG systems forget handlers when they are used;