Mercurial > emacs
comparison src/process.c @ 49894:675b86cf29fc
(wait_reading_process_input): Use POLL_INTERRUPTED_SYS_CALL, not
POLLING_PROBLEM_IN_SELECT.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Fri, 21 Feb 2003 08:05:55 +0000 |
parents | 012ced9cf144 |
children | 6dc5bfe9589b |
comparison
equal
deleted
inserted
replaced
49893:1bcf8d62f4cd | 49894:675b86cf29fc |
---|---|
3791 { | 3791 { |
3792 EMACS_GET_TIME (end_time); | 3792 EMACS_GET_TIME (end_time); |
3793 EMACS_SET_SECS_USECS (timeout, time_limit, microsecs); | 3793 EMACS_SET_SECS_USECS (timeout, time_limit, microsecs); |
3794 EMACS_ADD_TIME (end_time, end_time, timeout); | 3794 EMACS_ADD_TIME (end_time, end_time, timeout); |
3795 } | 3795 } |
3796 #ifdef POLLING_PROBLEM_IN_SELECT | 3796 #ifdef POLL_INTERRUPTED_SYS_CALL |
3797 /* AlainF 5-Jul-1996 | 3797 /* AlainF 5-Jul-1996 |
3798 HP-UX 10.10 seem to have problems with signals coming in | 3798 HP-UX 10.10 seem to have problems with signals coming in |
3799 Causes "poll: interrupted system call" messages when Emacs is run | 3799 Causes "poll: interrupted system call" messages when Emacs is run |
3800 in an X window | 3800 in an X window |
3801 Turn off periodic alarms (in case they are in use), | 3801 Turn off periodic alarms (in case they are in use), |
3802 and then turn off any other atimers. */ | 3802 and then turn off any other atimers. */ |
3803 stop_polling (); | 3803 stop_polling (); |
3804 turn_on_atimers (0); | 3804 turn_on_atimers (0); |
3805 #endif | 3805 #endif /* POLL_INTERRUPTED_SYS_CALL */ |
3806 | 3806 |
3807 while (1) | 3807 while (1) |
3808 { | 3808 { |
3809 int timeout_reduced_for_timers = 0; | 3809 int timeout_reduced_for_timers = 0; |
3810 | 3810 |
4352 { | 4352 { |
4353 /* Prevent input_pending from remaining set if we quit. */ | 4353 /* Prevent input_pending from remaining set if we quit. */ |
4354 clear_input_pending (); | 4354 clear_input_pending (); |
4355 QUIT; | 4355 QUIT; |
4356 } | 4356 } |
4357 #ifdef hpux | 4357 #ifdef POLL_INTERRUPTED_SYS_CALL |
4358 /* AlainF 5-Jul-1996 | 4358 /* AlainF 5-Jul-1996 |
4359 HP-UX 10.10 seems to have problems with signals coming in | 4359 HP-UX 10.10 seems to have problems with signals coming in |
4360 Causes "poll: interrupted system call" messages when Emacs is run | 4360 Causes "poll: interrupted system call" messages when Emacs is run |
4361 in an X window | 4361 in an X window |
4362 Turn periodic alarms back on */ | 4362 Turn periodic alarms back on */ |
4363 start_polling (); | 4363 start_polling (); |
4364 #endif | 4364 #endif /* POLL_INTERRUPTED_SYS_CALL */ |
4365 | 4365 |
4366 return got_some_input; | 4366 return got_some_input; |
4367 } | 4367 } |
4368 | 4368 |
4369 /* Given a list (FUNCTION ARGS...), apply FUNCTION to the ARGS. */ | 4369 /* Given a list (FUNCTION ARGS...), apply FUNCTION to the ARGS. */ |