Posted on Sep 7, 2009 by
Swift Ox
It would be great that communicate() does not need to spawn 2 threads to read stdout & stderr.
It could use ReadFile and WriteFile with an "overlapped" structure set. The overlapped contains an Event handle, which gets signaled when the call is complete. Then communicate() would repeatedly call WaitForMultipleObject() and process available data.
Status: New
Labels:
Type-Defect
Priority-Medium