in the book ,A call to wait() suspends execution (i.e., waits) until a child process (any child process) has completed, terminating either normally or via a signal. wait() will then reap the child, releasing any resources. If the child has already completed, then wait() just performs the reaping procedure. <br>here  is my code <br>import os<br>print "i am parent ",os.getpid()<br>ret  =  os.fork()<br>print  "i am here",os.getpid()<br>if  ret  ==  0:<br>         os.system('ls')<br>else:<br>        os.wait()<br>print "i am runing,who am i? ",os.getpid()<br><br>according to the word,the output may be:<br>i am parent  8014<br>i am here 8014<br>i am here 8015<br>"omitted my file"<br>i am runing,who am i?  8014<br>because 8015  is terminated by os.wait().<br><br>in fact the output is:<br><br>i am parent  8014<br>i am here 8014<br>i am here 8015<br>"omitted my file"<br>i am runing,who am i?  8015<br>i am runing,who am i?  8014<br><br>i want to know why ??<br>