GNU bug report logs -
#13475
24.2.91; accept-process-output hangs emacs on killed sub-process
Previous Next
Reported by: Vitalie Spinu <spinuvit <at> gmail.com>
Date: Thu, 17 Jan 2013 12:39:02 UTC
Severity: normal
Tags: confirmed
Found in versions 24.2.91, 25.0.95
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Dmitry Gutov <dgutov <at> yandex.ru> writes:
> On 03.10.2019 20:24, Lars Ingebrigtsen wrote:
>
>> I'm don't think this is a bug -- as you say, if PROC is dead, then we
>> just heed the timeout, so in a loop like this, you should check whether
>> PROC is alive before calling `accept-process-output'.
>> So I'm closing this bug report. I somebody things that Emacs should
>> be
>> changed to make accept-process-output to return immediately (with a
>> non-nil return value?) if PROC is dead, please reopen.
>
> Shouldn't we consider the "connection" to be "closed" if the process
> is dead? From the docstring:
>
> Return non-nil if we received any output from PROCESS (or, if PROCESS
> is nil, from any process) before the timeout expired or the
> corresponding connection was closed.
By "was closed" here, I think what's meant is "was closed before TIMEOUT
expired". If the connection is closed before the call, we wait for the
entire timeout.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 5 years and 230 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.