Incompatible with old version of GNU timeout
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Core Infrastructure |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
There is no option -k in timeout (GNU coreutils) 8.4, which is the default of Redhat 6.5:
# timeout --version
timeout (GNU coreutils) 8.4
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Pádraig Brady.
# timeout --help
Usage: timeout [OPTION] NUMBER[SUFFIX] COMMAND [ARG]...
or: timeout [OPTION]
Start COMMAND, and kill it if still running after NUMBER seconds.
SUFFIX may be `s' for seconds (the default), `m' for minutes,
`h' for hours or `d' for days.
Mandatory arguments to long options are mandatory for short options too.
-s, --signal=SIGNAL
--help display this help and exit
--version output version information and exit
# timeout -k 1m 5m git remote update
timeout: invalid option -- 'k'
Try `timeout --help' for more information.
Do not know the exact version this change brought in, but timeout 8.13/8.20 works just fine.
Updated: Sorry for my misunderstanding, updated after Pádraig Brady's comment.
description: | updated |
description: | updated |
summary: |
- Incompatible with newer version of GNU timeout + Incompatible with old version of GNU timeout |
description: | updated |
This feature was added in version 8.5 /github. com/coreutils/ coreutils/ commit/ c403c31e
https:/
One could degrade gracefully like:
timeout -k 1m 1m true 2>/dev/null && KILL_AFTER="-k 1m"
timeout $KILL_AFTER 5m git remote update