made call to waitpid() and dup2() sane...