File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change 66# --- Strict timeout: non-zero on timeout, prefer coreutils 'timeout' ---
77_timeout_strict () {
88 _messagePlain_probe " _timeout_strict → $( printf ' %q ' " $@ " ) "
9- # if command -v timeout >/dev/null 2>&1; then
10- # # Expected exits:
11- # # 0: success
12- # # 124: command timeout
13- # # 125: timeout command failed
14- # # 126/7: command could not run
15- # # Other: command exit code
16- # _messagePlain_probe "_timeout_strict: coreutils timeout path"
17- # timeout -k 5 "$@"; local rc=$?
18- # _messagePlain_probe "_timeout_strict: coreutils rc=$rc"
19- # return "$rc"
20- # fi
9+ if command -v timeout > /dev/null 2>&1 ; then
10+ # Expected exits:
11+ # 0: success
12+ # 124: command timeout
13+ # 125: timeout command failed
14+ # 126/7: command could not run
15+ # Other: command exit code
16+ _messagePlain_probe " _timeout_strict: coreutils timeout path"
17+ timeout -k 5 " $@ " ; local rc=$?
18+ _messagePlain_probe " _timeout_strict: coreutils rc=$rc "
19+ return " $rc "
20+ fi
2121
2222 _messagePlain_warn " ==rmh== **** TEMP _timeout_strict() PATH ***"
2323 _messagePlain_probe " _timeout_strict: fallback path"
You can’t perform that action at this time.
0 commit comments