[Python-bugs-list] [ python-Bugs-694062 ] os.popen() hangs on {Free,Open}BSD

SourceForge.net noreply@sourceforge.net
Wed, 26 Feb 2003 17:12:17 -0800


Bugs item #694062, was opened at 2003-02-26 18:12
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=694062&group_id=5470

Category: Python Interpreter Core
Group: Platform-specific
Status: Open
Resolution: None
Priority: 5
Submitted By: Jason R. Mastaler (jasonrm)
Assigned to: Nobody/Anonymous (nobody)
Summary: os.popen() hangs on {Free,Open}BSD

Initial Comment:
I'm seeing odd behavior with os.popen() on 
certain platforms such as FreeBSD and OpenBSD. 
 
FWIW, I posted about this problem almost two 
years ago on c.l.p, and never got a resolution. 
 
See 
http://mail.python.org/pipermail/python-list/2001-May/042373.html 
 
Now, many Python and FreeBSD upgrades later, 
I see the problem still exists. Now however, I need to 
find a solution as I can't workaround it any longer. 
 
I've attached about the simplest test case I could 
produce below. You can call it from a .forward or 
.qmail file.  
 
On Free/OpenBSD, the program runs but leaves a  
python process lying around: 
 
jasonrm    142  0.0  0.2  2576 2008  ??  I     5:42PM   
0:00.02 python /tmp/hang (python2.2) 
 
On other platforms such as Linux, the program also 
runs, but no process is left hanging around.  
 
I've been able to reproduce the problem on Free/OpenBSD 
only. The problem doesn't appear on IRIX, BSD/OS or  
Linux. 
 
Please let me know if I can do anything more to help 
debug this.  

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=694062&group_id=5470