classification
Title: Popen blocks program from another thread
Type: behavior Stage: committed/rejected
Components: Library (Lib) Versions: Python 2.6
process
Status: closed Resolution: invalid
Dependencies: Superseder:
Assigned To: Nosy List: dgriff1, r.david.murray (2)
Priority: low Keywords

Created on 2009-10-23 15:47 by dgriff1, last changed 2009-10-23 17:12 by dgriff1.

Files
File name Uploaded Description Edit Remove
subproc.py dgriff1, 2009-10-23 15:47 A script to recreate bug
Messages (3)
msg94389 - (view) Author: Dan Griffin (dgriff1) Date: 2009-10-23 15:47
When I create a thread that does a Popen it blocks the entire program. I
have attached a simple sample program. Whether I do Popen.wait or
Popen.poll the program blocks. I have done this on OSX 10.5 and 10.6. I
have not yet tried ussing the multiprocessing module.
msg94390 - (view) Author: R. David Murray (r.david.murray) Date: 2009-10-23 17:09
You are calling the 'run' method of your test class, which runs the
subprocess in the main thread.  Try calling t.start() instead.
msg94391 - (view) Author: Dan Griffin (dgriff1) Date: 2009-10-23 17:11
You are right, sorry to waste your time.
History
Date User Action Args
2009-10-23 17:12:01dgriff1setstatus: open -> closed
2009-10-23 17:11:31dgriff1setstatus: closed -> open

messages: + msg94391
2009-10-23 17:09:42r.david.murraysetstatus: open -> closed


nosy: + r.david.murray
messages: + msg94390
priority: low
resolution: invalid
stage: committed/rejected
2009-10-23 15:47:37dgriff1create