summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuanma Barranquero <lekktu@gmail.com>2003-02-17 08:58:43 +0000
committerJuanma Barranquero <lekktu@gmail.com>2003-02-17 08:58:43 +0000
commit5df483c89d43be424794d9a6fb3910c3cb2c7858 (patch)
treee44ee8f83aef88305ca522dc8ac461bcacc25eed
parentaf173f125d4f90285c033f1195c34678b1297f02 (diff)
downloademacs-5df483c89d43be424794d9a6fb3910c3cb2c7858.tar.gz
(wait_reading_process_input): Make the 2 patches in wait_reading_process_input
for HP-UX 10.10 from AlainF invalid for HP-UX 10.20 and higher. Nevertheless add the stop_polling call to AlainF's patch in wait_reading_process_input so that the code can work under 10.10.
-rw-r--r--src/process.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/process.c b/src/process.c
index 41627376d8b..a89c05aa790 100644
--- a/src/process.c
+++ b/src/process.c
@@ -2397,14 +2397,15 @@ wait_reading_process_input (time_limit, microsecs, read_kbd, do_display)
EMACS_SET_SECS_USECS (timeout, time_limit, microsecs);
EMACS_ADD_TIME (end_time, end_time, timeout);
}
-#ifdef hpux
+#ifdef POLL_INTERRUPTED_SYS_CALL
/* AlainF 5-Jul-1996
HP-UX 10.10 seem to have problems with signals coming in
Causes "poll: interrupted system call" messages when Emacs is run
in an X window
Turn off periodic alarms (in case they are in use) */
+ stop_polling ();
turn_on_atimers (0);
-#endif
+#endif /* POLL_INTERRUPTED_SYS_CALL */
while (1)
{
@@ -2851,14 +2852,14 @@ wait_reading_process_input (time_limit, microsecs, read_kbd, do_display)
clear_input_pending ();
QUIT;
}
-#ifdef hpux
+#ifdef POLL_INTERRUPTED_SYS_CALL
/* AlainF 5-Jul-1996
HP-UX 10.10 seems to have problems with signals coming in
Causes "poll: interrupted system call" messages when Emacs is run
in an X window
Turn periodic alarms back on */
start_polling ();
-#endif
+#endif /* POLL_INTERRUPTED_SYS_CALL */
return got_some_input;
}