Pure C implementation of the important bits of pythons Popen