[Python-bugs-list] [ python-Bugs-597795 ] spawn*() doesn't handle errors well
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 20 Aug 2002 08:36:12 -0700
Bugs item #597795, was opened at 2002-08-20 08:36
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=597795&group_id=5470
Category: Python Library
Group: Python 2.2.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Jim Hickey (gohickey)
Assigned to: Nobody/Anonymous (nobody)
Summary: spawn*() doesn't handle errors well
Initial Comment:
spawn*() routines are supposed to return the child's pid,
but if an error occurs (such as bad parameters, etc.), it
returns 127. This "looks" like a valid pid, so the caller
has no way of knowing if something when wrong.
Throwing an exception would be much more
informational (and python-esque).
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=597795&group_id=5470