diff options
Diffstat (limited to 'src/blockinput.h')
| -rw-r--r-- | src/blockinput.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/blockinput.h b/src/blockinput.h index 3f61b2b27b9..7501bfc91a0 100644 --- a/src/blockinput.h +++ b/src/blockinput.h | |||
| @@ -67,15 +67,10 @@ extern int pending_atimers; | |||
| 67 | If doing signal-driven input, and a signal came in when input was | 67 | If doing signal-driven input, and a signal came in when input was |
| 68 | blocked, reinvoke the signal handler now to deal with it. | 68 | blocked, reinvoke the signal handler now to deal with it. |
| 69 | 69 | ||
| 70 | We used to have two possible definitions of this macro - one for | 70 | Always test interrupt_input_pending; that's not too expensive, and |
| 71 | when SIGIO was #defined, and one for when it wasn't; when SIGIO | 71 | it'll never get set if we don't need to resignal. This is simpler |
| 72 | wasn't #defined, we wouldn't bother to check if we should re-invoke | 72 | than dealing here with every configuration option that might affect |
| 73 | the signal handler. But that doesn't work very well; some of the | 73 | whether interrupt_input_pending can be nonzero. */ |
| 74 | files which use this macro don't #include the right files to get | ||
| 75 | SIGIO. | ||
| 76 | |||
| 77 | So, we always test interrupt_input_pending now; that's not too | ||
| 78 | expensive, and it'll never get set if we don't need to resignal. */ | ||
| 79 | 74 | ||
| 80 | #define UNBLOCK_INPUT \ | 75 | #define UNBLOCK_INPUT \ |
| 81 | do \ | 76 | do \ |