aboutsummaryrefslogtreecommitdiff
path: root/shell/shell_common.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2022-01-16 23:54:46 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2022-01-16 23:54:46 +0100
commita277506a64404e6c4472ff89c944c4f353db1c33 (patch)
tree168015ae951c51bcb0295c2ebc241f168001a135 /shell/shell_common.c
parentc2788f88f430da8ae5fb5f293b13fc2b167ea2fe (diff)
downloadbusybox-w32-a277506a64404e6c4472ff89c944c4f353db1c33.tar.gz
busybox-w32-a277506a64404e6c4472ff89c944c4f353db1c33.tar.bz2
busybox-w32-a277506a64404e6c4472ff89c944c4f353db1c33.zip
shell: add comments about SIGINT-related problems
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
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;