RosettaCodeData/Task/Fork/Standard-ML/fork.ml

4 lines
134 B
OCaml
Raw Permalink Normal View History

2013-04-10 22:43:41 -07:00
case Posix.Process.fork () of
SOME pid => print "This is the original process\n"
| NONE => print "This is the new process\n";