patch by Pieter Grimmerink: -call waitpid on the child, after it completes. This...