Re: subprocess.Popen deadlocks

2010-11-12 Thread eraserix
On Nov 12, 6:58 am, Lawrence D'Oliveiro wrote: > In message > <2cf9a225-7d1c-4490-8a62-807e79bdd...@n30g2000vbb.googlegroups.com>, > > Why not skip all the threads and just spawn all the processes in your main > loop? Then after getting the SIGINT, send that signal to all your processes, > and the

Re: subprocess.Popen deadlocks

2010-11-11 Thread Lawrence D'Oliveiro
In message <2cf9a225-7d1c-4490-8a62-807e79bdd...@n30g2000vbb.googlegroups.com>, eraserix wrote: > I try to control several process from a python script. Each process is > started from a thread, the threads just wait() for the child to exit > and can then be joined. Main waits for SIGINT. After i

subprocess.Popen deadlocks

2010-11-10 Thread eraserix
Hi >From time to time I observe a deadlock in subprocess.Popen. I see the childprocess beeing and if I attach gdb to the stuck python script, I can see it waiting on line 1128 in subprocess.py ( data = _eintr_retry_call(os.read, errpipe_read, 1048576) ). Any ideas of whats going on? I'm on linux