Paste number 152720: save and lisp and carry on

Paste number 152720: save and lisp and carry on
Pasted by: phf
When:9 years, 7 months ago
Share:Tweet this! | http://paste.lisp.org/+39U8
Channel:None
Paste contents:
Raw Source | XML | Display As

(defun snapshot (&optional (core-file-name "snapshot.core")  waitp)
  (let ((pid (sb-posix:fork)))
    (cond ((= pid 0)
           (sb-ext:save-lisp-and-die core-file-name))
          (waitp (sb-posix:wait)))))

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.