I have not tried( kill( 0, $pid ) ) { ... }
In reply to Re^2: Detect Process End by rcolman in thread Detect Process End by rcolman