Skip to content

Commit bfda2ba

Browse files
Replaced Open4 with posix-spawn gem
1 parent 86eb16d commit bfda2ba

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/ohloh_scm/adapters/bzrlib/bzrlib_pipe_client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
require 'rubygems'
2-
require 'open4'
2+
require 'posix/spawn'
33

44
class BzrPipeClient
55
def initialize(repository_url)
@@ -8,7 +8,7 @@ def initialize(repository_url)
88
end
99

1010
def start
11-
@pid, @stdin, @stdout, @stderr = Open4::popen4 "python #{@py_script}"
11+
@pid, @stdin, @stdout, @stderr = POSIX::Spawn::popen4 "python #{@py_script}"
1212
open_repository
1313
end
1414

lib/ohloh_scm/adapters/hglib/client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
require 'rubygems'
2-
require 'open4'
2+
require 'posix/spawn'
33

44
class HglibClient
55
def initialize(repository_url)
@@ -8,7 +8,7 @@ def initialize(repository_url)
88
end
99

1010
def start
11-
@pid, @stdin, @stdout, @stderr = Open4::popen4 "python #{@py_script}"
11+
@pid, @stdin, @stdout, @stderr = POSIX::Spawn::popen4 "python #{@py_script}"
1212
open_repository
1313
end
1414

0 commit comments

Comments
 (0)