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,7 +38,11 @@ module Capybara::Poltergeist
|
|||
}
|
||||
|
||||
redirect_stdout(write) do
|
||||
@pid = Process.spawn(*command.map(&:to_s), pgroup: true)
|
||||
if Capybara::Poltergeist.windows?
|
||||
@pid = Process.spawn(*command.map(&:to_s))
|
||||
else
|
||||
@pid = Process.spawn(*command.map(&:to_s), pgroup: true)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue