Handbook
Glossary
kill-process ( process -- )
Operating system processes
ยป
The process lifecycle
Prev:
wait-for-process ( process -- status )
Vocabulary
io
.
launcher
Inputs
process
a
process
Outputs
None
Word description
Kills a running process. Does nothing if the process has already exited.
Examples
USING: io.launcher ; "cat" run-detached kill-process
Definition
USING:
accessors
destructors
kernel
;
IN:
io.launcher
:
kill-process
( process -- )
t
>>killed
[
pipe>>
[
dispose
]
when*
]
[
dup
handle>>
[
(kill-process)
]
[
drop
]
if
]
bi
;