Import bug fixes from EVMS 2.0 tree.

Fixed possible hangs caused by bugs in calling waitpid, and not
setting the pipe to non-blocking mode.  Also fixed a file descriptor
leak.  Made sure all functions call log entry/exit functions.

4 files changed