Fork: Difference between revisions

230 bytes added ,  10 years ago
m
Added Nimrod code
(Corrected to work)
m (Added Nimrod code)
Line 488:
Run[commandstring]
->0</lang>
 
=={{header|Nimrod}}==
<lang nimrod>import posix
 
var pid = fork()
if pid < 0:
# error forking a child
elif pid > 0:
# parent, and pid is process id of child
else:
# child
quit()
# further Parent stuff here</lang>
 
=={{header|OCaml}}==
118

edits