Merge pull request #1140 from sursh/2.1

Change kill signal so grandchildren processes end.
This commit is contained in:
Parker Moore 2013-03-25 07:12:40 -07:00
commit e5be488267
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ task :preview do
rackupPid = Process.spawn("rackup --host #{configuration[:server_host]} --port #{configuration[:server_port]}")
trap("INT") {
[guardPid, rackupPid].each { |pid| Process.kill(9, pid) rescue Errno::ESRCH }
[guardPid, rackupPid].each { |pid| Process.kill(3, pid) rescue Errno::ESRCH }
exit 0
}