popen hangs on linux kernel 2.2.16

Thomas Guettler zopestoller at thomas-guettler.de
Tue May 14 11:10:33 EDT 2002


JP Dube wrote:

> Hi,
> 
> I wrote a small script that call the ping command using the popen function
> in python. The script is working fine on kernel 2.4.16 but when I run it
> under kernel 2.2.16 the command never returns and hangs there until I
> manually kill it. Is there a workaround for this bug


Do you use popen3?

It can result in dead-locks. See:


http://mail.python.org/pipermail/python-bugs-list/2002-March/010514.html


  thomas




More information about the Python-list mailing list