in reply to why can't I catch CHLD signal?
Any other issues aside, what guarantees that local $SIG{CHLD} = sub {say 'caught it';}; executes before the child's die?