mirror of
https://github.com/teampoltergeist/poltergeist.git
synced 2022-11-09 12:05:00 -05:00
Fix process spawn pgroup error on Windows
This commit is contained in:
parent
7dee7758a0
commit
8620e4fb32
1 changed files with 5 additions and 1 deletions
|
@ -38,9 +38,13 @@ module Capybara::Poltergeist
|
||||||
}
|
}
|
||||||
|
|
||||||
redirect_stdout(write) do
|
redirect_stdout(write) do
|
||||||
|
if Capybara::Poltergeist.windows?
|
||||||
|
@pid = Process.spawn(*command.map(&:to_s))
|
||||||
|
else
|
||||||
@pid = Process.spawn(*command.map(&:to_s), pgroup: true)
|
@pid = Process.spawn(*command.map(&:to_s), pgroup: true)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def stop
|
def stop
|
||||||
if pid
|
if pid
|
||||||
|
|
Loading…
Add table
Reference in a new issue