Mercurial > emacs
changeset 72474:628cb3adc7f7
Clarify difference between in_sighandler and handling_signal.
author | Jan Djärv <jan.h.d@swipnet.se> |
---|---|
date | Mon, 21 Aug 2006 12:54:47 +0000 |
parents | 2b669ff7d168 |
children | 032d1981ee5b |
files | src/keyboard.c |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/keyboard.c Mon Aug 21 10:57:46 2006 +0000 +++ b/src/keyboard.c Mon Aug 21 12:54:47 2006 +0000 @@ -100,7 +100,12 @@ /* File descriptor to use for input. */ extern int input_fd; -/* Nonzero if we are executing from the SIGIO signal handler. */ +/* Nonzero if we are executing from the SIGIO signal handler. + The difference between in_sighandler and handling_signal is that + in_sighandler is only set when executing in a signal handler. + handling_signal may be set even if not executing in a signal handler, for + example when reinvoke_input_signal is called from UNBLOCK_INPUT, or + when Emacs is compiled with SYNC_INPUT defined. */ int in_sighandler; #ifdef HAVE_WINDOW_SYSTEM