Clean up process wait to use POSIX waitpid() interface.
[mmh] / DATE
1  3 January 2012