linux - signals used by the timeout command -
i want run program timeout. i'm doing using timeout
command this
timeout 5 path/to/program
program
using time-related signals: blocking, unblocking , raising sigalrm , sigvtalrm. don't know how timeout
works, guess uses time signals. should worried signals program
interfere timeout
, vice versa?
by default, timeout
send sigterm
(unless change -s
). therefore, shouldn't see conflict other signals.
fyi, if program exited timeout, have return value of 124
. can force kill (if doesn't die gracefully) using -k seconds
give return value of 137
.
Comments
Post a Comment