[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#6074: accept-process-output on listening sockets cause non-interrupt
From: |
Eli Zaretskii |
Subject: |
bug#6074: accept-process-output on listening sockets cause non-interruptible infloop |
Date: |
Mon, 22 Jul 2019 17:26:29 +0300 |
> From: Pip Cet <pipcet@gmail.com>
> Date: Mon, 22 Jul 2019 03:52:33 +0000
>
> diff --git a/src/process.c b/src/process.c
> index abadabe77e..1311409274 100644
> --- a/src/process.c
> +++ b/src/process.c
> @@ -5277,7 +5277,9 @@ wait_reading_process_output (intmax_t time_limit, int
> nsecs, int read_kbd,
> int nread = read_process_output (proc, wait_proc->infd);
> if (nread < 0)
> {
> - if (errno == EIO || would_block (errno))
> + if (errno == EINTR)
> + continue;
> + else
> break;
> }
> else
Isn't it better to simply call rarely_quit inside the loop?