os.fork()

mixo mixo at beth.uniforum.org.za
Mon Dec 24 05:01:39 EST 2001


What does 'os.fork' return?

Here is a script I have been playing with :

++++++++++++++++++++++++++++++++++++++++++++

import os

l = os.fork()
print l

++++++++++++++++++++++++++++++++++++++++++++

This prints out two numbers, I was expecting
one. The first number seems to be the 'pid'
of the child process and the second number,
the exit status 'fork'.  The number I was
expecting is the exit status.


Mixo




More information about the Python-list mailing list