Wait

$

proc


->Wait
(

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 .