Fork: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 35: | Line 35: | ||
exit(0); |
exit(0); |
||
} |
} |
||
==[[Python]]== |
|||
[[Category:Python]] |
|||
'''Interpreter:''' [[Python]] 2.5 |
|||
import os |
|||
pid = os.fork() |
|||
if pid > 0: |
|||
# parent code |
|||
else: |
|||
# child code |