Skip to content

Commit f187447

Browse files
committed
revert testing change to _timeout_strict()
1 parent a802ddc commit f187447

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

ops.sh

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@
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"

0 commit comments

Comments
 (0)