signal handler for sigchld, eliminating zombie subprocess

solution to #2