Instead of adding another wait, why not just set $SIG{CHLD} = 'IGNORE';?
In reply to Re: exec creating zombie processes by JavaFan in thread exec creating zombie processes by jaiieq