Skip to content

sys.proc

TurtleKitty edited this page May 18, 2019 · 2 revisions

sys.proc

sys.proc.pid ; 10600
sys.proc.uid ; 1000
sys.proc.gid ; 1000

sys.proc.parent-pid                 ; 10599
(sys.proc.process-gid sys.proc.pid) ; 10600

(sys.proc.run "date +%s")  ; 1558139867
(sys.proc.sleep 1)         ; Zzzzz...

; fork returns the PID of the child process
 
(sys.proc.fork
    (thunk
        (say "Beware!  I live.")
        (say "Run, coward!!!")
        (sys.proc.exit)))

; 10605
; Beware!  I live.
; Run, coward!!!
Clone this wiki locally