os.fork() question?
Erik Heneryd
erik at heneryd.com
Mon Sep 13 17:17:26 EDT 2004
Ishwar Rattan wrote:
> Info at http://doc.python.org/ on os.fork() says that
> it has 'unix' semantics (on a UNIX box) on return values
> child pid in parent, 0 in child, no mention of failure?
>
> So, what does it return on failure? I tried it under Linux
> with Python-2.3.4, after few thousand forks the system just hangs!
> (does not return/report fork failure)
It raises OSError.
Erik
More information about the Python-list
mailing list