Skip to content

Commit

Permalink
Use sudo to SIGKILL processes that time out
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelklishin committed Dec 1, 2011
1 parent 5af603c commit bcbc8b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vagrant_base/timetrap/files/default/timetrap
Expand Up @@ -83,7 +83,7 @@ fi
# The 'exit 0' below will be executed if any preceeding command fails.
kill -s SIGTERM $$ && kill -0 $$ && echo $timeoutMessage && exit 1
sleep $delay
kill -s SIGKILL $$
sudo kill -s SIGKILL $$ && echo "SIGTERM was ignored, using sudo + SIGKILL" && exit 1
exit 1
) 2> /dev/null &

Expand Down

0 comments on commit bcbc8b8

Please sign in to comment.