summaryrefslogtreecommitdiff
path: root/src/keyboard.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-09-04 15:02:52 +0000
committerRichard M. Stallman <rms@gnu.org>1996-09-04 15:02:52 +0000
commit99e8276929f4ae4ac9a7d4631fcaa4644720ed30 (patch)
treece568afa0422df9d88e9118f17e2a4dd8473bc07 /src/keyboard.c
parent700e19ba3c30987fdac67b0e50822164175fb85f (diff)
downloademacs-99e8276929f4ae4ac9a7d4631fcaa4644720ed30.tar.gz
(input_available_signal) [POSIX_SIGNALS]:
Don't reestablish handler. (interrupt_signal) [POSIX_SIGNALS]: Likewise.
Diffstat (limited to 'src/keyboard.c')
-rw-r--r--src/keyboard.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index b1578a3a949..f0a95c3e5ab 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -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;