bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#51128: timeout --kill-after=0 seems to not send a kill 0s after the


From: Pádraig Brady
Subject: bug#51128: timeout --kill-after=0 seems to not send a kill 0s after the initial signal
Date: Mon, 11 Oct 2021 16:49:38 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101 Thunderbird/84.0

tag 51128 notabug
close 51128
stop

On 11/10/2021 02:28, Christoph Anton Mitterer wrote:
Hey.

The timeout(1) manpage says:
        -k, --kill-after=DURATION
               also send a KILL signal if COMMAND is still running
               this long after the initial signal was sent

My naive assumption would have been that --kill-after=0 means that a
signal is sent immediately after the original one.

Well that wouldn't be that useful functionality,
as why not just send a single kill signal in that case.

However, that doesn't seem to be the case.


If intended, this should perhaps at least be mentioned in the manpage
:-)

It is intended that a 0 duration disables that timeout.
It is mentioned in the full documentation at:
https://www.gnu.org/software/coreutils/timeout
The man pages don't try to document every nuance.

cheers,
Pádraig.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]