RosettaCodeData/Task/Fork/Common-Lisp/fork.lisp
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07:00

5 lines
221 B
Common Lisp

(let ((pid (sb-posix:fork)))
(cond
((zerop pid) (write-line "This is the new process."))
((plusp pid) (write-line "This is the original process."))
(t (error "Something went wrong while forking."))))