shell: add comments about SIGINT-related problems

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2022-01-16 23:54:46 +01:00
parent c2788f88f4
commit a277506a64
2 changed files with 9 additions and 5 deletions

View File

@ -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;