Skip to content

Commit

Permalink
use pkill to kill Node process; don't run timeout logic in background
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Herman committed Oct 22, 2011
1 parent f0341ee commit 7bb3d6e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions bin/e10s
Expand Up @@ -245,10 +245,9 @@ export ANALYSIS=$!
((t -= 1))
done

# Be friendly and send a SIGTERM first.
kill -s SIGTERM $ANALYSIS && kill -0 $ANALYSIS || exit 0
# Wait a sec, then set blasters to kill.
sleep 1
# Kill the analysis child processes (in particular, the Node process)
pkill -KILL -P $ANALYSIS
# Kill the analysis process
kill -s SIGKILL $ANALYSIS
echo timeout > ${XPI_DIRNAME}/result
) 2> /dev/null &
) 2> /dev/null

0 comments on commit 7bb3d6e

Please sign in to comment.