in reply to Re: destroying/reaping a POE::Wheel
in thread destroying/reaping a POE::Wheel

Thanks, I tried two approaches based on your advice, and both worked!

Putting a waitpid inside the sig_child handler worked as you suggested, however putting a 'do {} while (wait() > 0)' in the CloseEvent handler also did the trick. Im thinking the first method is better as it reaps earlier.

Cheers