# File common/src/rb/lib/selenium/webdriver/child_process.rb, line 140 def kill kill! end
# File common/src/rb/lib/selenium/webdriver/child_process.rb, line 119 def start require "win32/process" # adds a dependency on windows - perhaps we could just use FFI instead? @pid = Process.create( :app_name => @args.join(" "), :inherit => false # don't inherit open file handles ).process_id self end
# File common/src/rb/lib/selenium/webdriver/child_process.rb, line 129 def wait_nonblock(timeout) # win32-process doesn't support passing a second argument to waitpid2 # See the README @ http://rubyforge.org/docman/view.php/85/707/README.html if defined?(Process::WNOHANG) && Process.method(:waitpid2).arity != 1 return super end Timeout.timeout(timeout, Error::TimeOutError) { wait } rescue Process::Error # no handle, great end
Generated with the Darkfish Rdoc Generator 2.