Re: thread hangs when using subprocess only in specific circumstances

2006-01-09 Thread Donn Cave
In article <[EMAIL PROTECTED]>, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Mon, 09 Jan 2006 22:59:45 +0100, Toon Verstraelen > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > > > --- main.py --- > > > > import my_thread > > > Are you sure it is hanging? I'd expec

thread hangs when using subprocess only in specific circumstances

2006-01-09 Thread Toon Verstraelen
Hi, I recently had a thread problem and I could reduce it to a very short example that shows the problem. I hope it has its origin in my misunderstanding of how python threads work. Here it is: --- my_thread.py --- import threading from subprocess import Popen, PIPE, STDOUT class MyThread(threa