popen2: timeout feature
popen2: bug fix, waitpid on reset