$proc->Wait(n)
proc
n
Waits n milliseconds for the process to exit. If the process times out, the method returns false and sets $! to WAIT_FAILED. For no timeout, set n to INFINITE.
$!
WAIT_FAILED
INFINITE
Copyright © 2001 O'Reilly & Associates. All rights reserved.