sigchild/popen signal race fixes