Mercurial > hg > xemacs-beta
diff src/event-unixoid.c @ 185:3d6bfa290dbd r20-3b19
Import from CVS: tag r20-3b19
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:55:28 +0200 |
parents | 25f70ba0133c |
children | 727739f917cb |
line wrap: on
line diff
--- a/src/event-unixoid.c Mon Aug 13 09:54:24 2007 +0200 +++ b/src/event-unixoid.c Mon Aug 13 09:55:28 2007 +0200 @@ -252,18 +252,18 @@ exit (-1); } signal_event_pipe_initialized = 1; - + /* Set it non-blocking so we can drain its output. */ set_descriptor_non_blocking (signal_event_pipe[0]); - + /* Also set the write descriptor non-blocking so we don't hang in case a long time passes between times when we drain the pipe. */ set_descriptor_non_blocking (signal_event_pipe[1]); - + /* WARNING: In order for the signal-event pipe to work correctly and not cause lockups, the following need to be followed: - + 1) event_pending_p() must ignore input on the signal-event pipe. 2) As soon as next_event() notices input on the signal-event pipe, it must drain it. */ @@ -271,6 +271,6 @@ FD_ZERO (&non_fake_input_wait_mask); FD_ZERO (&process_only_mask); FD_ZERO (&tty_only_mask); - + FD_SET (signal_event_pipe[0], &input_wait_mask); }