Mercurial > emacs
comparison src/process.c @ 56477:59a86f6ee1fb
Fixes for Ctrl-G support on carbon, replacing old timeout based polling
with alarm based polling.
mac.c (sys_select): Redo sys_select to use alarm-based
polling instead of 1 sec timeouts (like solaris).
macterm.c (x_make_frame_visible): Comment in polling on
frame creation.
keyboard.c: Undef SIGIO on Carbon
atimer.c (alarm_signal_handler): Call alarm handlers after
scheduling.
eval.c (Feval): Remove quit_char test
process.c (wait_reading_process_input): Remove clearing
stdin for select call on process input
author | Steven Tamm <steventamm@mac.com> |
---|---|
date | Mon, 19 Jul 2004 04:42:43 +0000 |
parents | 5839db7619ca |
children | 64ae47cb68ff e657dca8261e b9eee0a7bef5 |
comparison
equal
deleted
inserted
replaced
56476:094de440fa2e | 56477:59a86f6ee1fb |
---|---|
4188 if (update_tick != process_tick && do_display) | 4188 if (update_tick != process_tick && do_display) |
4189 { | 4189 { |
4190 SELECT_TYPE Atemp, Ctemp; | 4190 SELECT_TYPE Atemp, Ctemp; |
4191 | 4191 |
4192 Atemp = input_wait_mask; | 4192 Atemp = input_wait_mask; |
4193 #ifdef MAC_OSX | 4193 #if 0 |
4194 /* On Mac OS X, the SELECT system call always says input is | 4194 /* On Mac OS X 10.0, the SELECT system call always says input is |
4195 present (for reading) at stdin, even when none is. This | 4195 present (for reading) at stdin, even when none is. This |
4196 causes the call to SELECT below to return 1 and | 4196 causes the call to SELECT below to return 1 and |
4197 status_notify not to be called. As a result output of | 4197 status_notify not to be called. As a result output of |
4198 subprocesses are incorrectly discarded. */ | 4198 subprocesses are incorrectly discarded. |
4199 */ | |
4199 FD_CLR (0, &Atemp); | 4200 FD_CLR (0, &Atemp); |
4200 #endif | 4201 #endif |
4201 Ctemp = connect_wait_mask; | 4202 Ctemp = connect_wait_mask; |
4202 EMACS_SET_SECS_USECS (timeout, 0, 0); | 4203 EMACS_SET_SECS_USECS (timeout, 0, 0); |
4203 if ((select (max (max_process_desc, max_keyboard_desc) + 1, | 4204 if ((select (max (max_process_desc, max_keyboard_desc) + 1, |