Fork: Difference between revisions

150 bytes added ,  17 years ago
no edit summary
No edit summary
Line 35:
exit(0);
}
 
==[[Python]]==
[[Category:Python]]
'''Interpreter:''' [[Python]] 2.5
import os
 
pid = os.fork()
if pid > 0:
# parent code
else:
# child code
Anonymous user