Following code return with [Errno 10] No child processes on windows platform (python version 2.7.2).
import subprocess import os pid = subprocess.Popen(["cmd"]).pid os.waitpid(pid, 0) print 'process %d finished' % pid
The same code works well on Linux.
Maby this will work- but I have no idea, why your code isn’t working on Windows- everything looks fine: