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

4 lines
134 B
OCaml
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
case Posix.Process.fork () of
SOME pid => print "This is the original process\n"
| NONE => print "This is the new process\n";