Files
busybox/coreutils
Ron Yorston e4b5ccd13b timeout: allow fractional seconds in timeout values
The 'timeout' applet uses parse_duration_str() to obtain its
timeout values.  The default configuration enables float durations.

However, the applet silently ignores fractional seconds.  This
results in unexpected behaviour:

   $ timeout 5.99 sleep 5.1; echo $?
   Terminated
   143

When float durations are enabled ensure that any fractional seconds
are taken into account.

function                                             old     new   delta
timeout_wait                                          44      92     +48
timeout_main                                         383     365     -18
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 48/-18)             Total: 30 bytes

Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2024-07-13 21:34:18 +02:00
..
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2021-06-14 20:47:20 +02:00
2021-06-14 20:47:20 +02:00
2023-07-10 17:25:21 +02:00
2023-07-17 17:29:36 +02:00
2023-07-10 17:25:21 +02:00
2023-07-17 17:29:36 +02:00
2023-07-10 17:25:21 +02:00
2023-07-17 17:29:36 +02:00
2023-07-17 17:29:36 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-07-17 17:29:36 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-07-17 17:29:36 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-07-17 17:29:36 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-01-02 17:04:44 +01:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-10-02 13:56:32 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-11-07 16:59:09 +01:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-07-17 17:29:36 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-08-31 09:41:53 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00
2023-07-10 17:25:21 +02:00