1
0
Fork 0
mirror of https://github.com/teampoltergeist/poltergeist.git synced 2022-11-09 12:05:00 -05:00

Prevent ^C triggering a DeadClient error

Closes #252
This commit is contained in:
Jon Leighton 2013-03-03 20:36:30 +00:00
parent cc58059326
commit 5eaad1f00c
2 changed files with 3 additions and 1 deletions

View file

@ -325,6 +325,8 @@ Include as much information as possible. For example:
and in general doesn't seem to be worth the trouble at the moment.
It can be reconsidered in the future when PhantomJS has upgraded its
WebKit version. [Issue #176, #223]
* Run phantomjs in a new process group so ^C doesn't trigger a
DeadClient error [Issue #252]
### 1.1.0 ###

View file

@ -38,7 +38,7 @@ module Capybara::Poltergeist
}
redirect_stdout(write) do
@pid = Process.spawn(*command.map(&:to_s))
@pid = Process.spawn(*command.map(&:to_s), pgroup: true)
end
end