Shell capture and pass signal to child