RosettaCodeData/Task/Fork/OCaml/fork.ocaml
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07:00

6 lines
156 B
Text

#load "unix.cma";;
let pid = Unix.fork ();;
if pid > 0 then
print_endline "This is the original process"
else
print_endline "This is the new process";;