don't leak pipe fd
use pipe to block process exit until all transitive children exit
Merge pull request #58 from ltfetch/master

Wait for all transitive child processes to exit