From a277506a64404e6c4472ff89c944c4f353db1c33 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 16 Jan 2022 23:54:46 +0100 Subject: shell: add comments about SIGINT-related problems Signed-off-by: Denys Vlasenko --- shell/shell_common.c | 1 + 1 file changed, 1 insertion(+) (limited to 'shell/shell_common.c') diff --git a/shell/shell_common.c b/shell/shell_common.c index 2e36d92..13163ac 100644 --- a/shell/shell_common.c +++ b/shell/shell_common.c @@ -196,6 +196,7 @@ shell_builtin_read(struct builtin_read_params *params) */ errno = 0; pfd[0].events = POLLIN; +//TODO race with a signal arriving just before the poll! if (poll(pfd, 1, timeout) <= 0) { /* timed out, or EINTR */ err = errno; -- cgit v1.1