Method: Aggkit::ChildProcess::Windows::Lib.wait_for_pid
- Defined in:
- lib/aggkit/childprocess/windows/lib.rb
.wait_for_pid(pid, no_hang) ⇒ Object
405 406 407 408 409 410 411 412 |
# File 'lib/aggkit/childprocess/windows/lib.rb', line 405 def wait_for_pid(pid, no_hang) code = Handle.open(pid) { |handle| handle.wait unless no_hang handle.exit_code } code if code != PROCESS_STILL_ACTIVE end |