Handbook
Glossary
(kill-process) ( process -- )
Vocabulary
io
.
launcher
Inputs
process
process
Outputs
None
Generic word contract
Kills a running process.
Notes
User code should call
kill-process
instead.
Definition
USING:
io.backend
;
IN:
io.launcher
HOOK:
(kill-process)
io-backend
( process -- )
Methods
USING:
accessors
combinators
io.launcher
kernel
libc
system
unix.ffi
unix.process
;
M:
unix
(kill-process)
[
handle>>
SIGTERM
]
[
group>>
]
bi
{
{
+same-group+
[
kill
]
}
{
+new-group+
[
killpg
]
}
{
+new-session+
[
killpg
]
}
}
case
io-error
;