# HG changeset patch # User Richard M. Stallman # Date 775612824 0 # Node ID ee13e8728666c8560f09397d5de51bbe29379442 # Parent 298183d131b1fa105331defe045dc71fd7ef871e (create_process): Set default handling for SIGINT, etc. (wait_reading_process_input): Fix previous change. diff -r 298183d131b1 -r ee13e8728666 src/process.c --- a/src/process.c Sat Jul 30 21:20:37 1994 +0000 +++ b/src/process.c Sun Jul 31 00:00:24 1994 +0000 @@ -1409,6 +1409,9 @@ #endif /* not BSD4_1 */ #endif /* SIGCHLD */ + signal (SIGINT, SIG_DFL); + signal (SIGQUIT, SIG_DFL); + if (pty_flag) child_setup_tty (xforkout); child_setup (xforkin, xforkout, xforkout, @@ -1950,7 +1953,7 @@ /* Wait till there is something to do */ Available = input_wait_mask; - if (! XINT (read_kbd) || wait_for_cell != 0) + if (! XINT (read_kbd) && wait_for_cell == 0) FD_CLR (keyboard_descriptor, &Available); /* If frame size has changed or the window is newly mapped, @@ -2035,7 +2038,7 @@ /* We used to do this if wait_for_cell, but that caused infinite recursion in selection request events. */ - if ((XINT (read_kbd)) + if ((XINT (read_kbd) || wait_for_cell) && detect_input_pending ()) { swallow_events ();