diff options
Diffstat (limited to 'shell/shell_common.c')
-rw-r--r-- | shell/shell_common.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/shell/shell_common.c b/shell/shell_common.c index fff356c04..399d5e684 100644 --- a/shell/shell_common.c +++ b/shell/shell_common.c | |||
@@ -218,6 +218,7 @@ shell_builtin_read(struct builtin_read_params *params) | |||
218 | */ | 218 | */ |
219 | errno = 0; | 219 | errno = 0; |
220 | pfd[0].events = POLLIN; | 220 | pfd[0].events = POLLIN; |
221 | //TODO race with a signal arriving just before the poll! | ||
221 | if (poll(pfd, 1, timeout) <= 0) { | 222 | if (poll(pfd, 1, timeout) <= 0) { |
222 | /* timed out, or EINTR */ | 223 | /* timed out, or EINTR */ |
223 | err = errno; | 224 | err = errno; |