Skip to content

Commit 6ae7740

Browse files
committed
use spawn
1 parent e2085e8 commit 6ae7740

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/browserstack/local.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,8 @@ def start(options = {})
5858
end
5959

6060
system("echo '' > '#{@logfile}'")
61-
if defined? spawn
62-
@pid = spawn(command)
63-
Process.detach @pid
64-
end
61+
@pid = Process.spawn(command)
62+
Process.detach @pid
6563
#@process = IO.popen(command)
6664
@stdout = File.open(@logfile, "r")
6765

0 commit comments

Comments
 (0)