Merge pull request #1140 from sursh/2.1
Change kill signal so grandchildren processes end.
This commit is contained in:
commit
e5be488267
2
Rakefile
2
Rakefile
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue