aboutsummaryrefslogtreecommitdiff
path: root/shell/shell_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/shell_common.c')
-rw-r--r--shell/shell_common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/shell/shell_common.c b/shell/shell_common.c
index 2e36d9208..13163acdf 100644
--- a/shell/shell_common.c
+++ b/shell/shell_common.c
@@ -196,6 +196,7 @@ shell_builtin_read(struct builtin_read_params *params)
196 */ 196 */
197 errno = 0; 197 errno = 0;
198 pfd[0].events = POLLIN; 198 pfd[0].events = POLLIN;
199//TODO race with a signal arriving just before the poll!
199 if (poll(pfd, 1, timeout) <= 0) { 200 if (poll(pfd, 1, timeout) <= 0) {
200 /* timed out, or EINTR */ 201 /* timed out, or EINTR */
201 err = errno; 202 err = errno;