This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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

Created on 2009-10-23 15:47 by dgriff1, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
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) * (Python committer) 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
2022-04-11 14:56:54adminsetgithub: 51442
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
priority: low


nosy: + r.david.murray
messages: + msg94390
resolution: not a bug
stage: resolved
2009-10-23 15:47:37dgriff1create