Methods

ChildProcess::Windows::Process

Attributes

pid[R]

@return [Fixnum] the pid of the process after it has started

Public Instance Methods

exited?() click to toggle source
# File lib/childprocess/windows/process.rb, line 25
def exited?
  return true if @exit_code
  assert_started

  code   = @handle.exit_code
  exited = code != PROCESS_STILL_ACTIVE

  log(:exited? => exited, :code => code)

  if exited
    @exit_code = code
  end

  exited
end
io() click to toggle source
# File lib/childprocess/windows/process.rb, line 9
def io
  @io ||= Windows::IO.new
end
stop(timeout = 3) click to toggle source
# File lib/childprocess/windows/process.rb, line 13
def stop(timeout = 3)
  assert_started

  # just kill right away on windows.
  log "sending KILL"
  @handle.send(WIN_SIGKILL)

  poll_for_exit(timeout)
ensure
  @handle.close
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.