Destroying a process together with everything it spawned.
Killing only the direct child leaves grandchildren alive, holding the pipes and whatever resource the kill was meant to reclaim — a timeout that reaps just the shell reclaims nothing.
Leaf namespace: java.lang only. No hive-weave, so it loads under Babashka.
Destroying a process together with everything it spawned. Killing only the direct child leaves grandchildren alive, holding the pipes and whatever resource the kill was meant to reclaim — a timeout that reaps just the shell reclaims nothing. Leaf namespace: java.lang only. No hive-weave, so it loads under Babashka.
(descendant-handles proc)Every live descendant of proc, as a seq of ProcessHandle.
Every live descendant of `proc`, as a seq of ProcessHandle.
(destroy-tree! proc)(destroy-tree! proc force?)Destroy proc and every process it spawned, descendants first so a parent
cannot respawn a child that was already reaped.
force? selects SIGKILL (.destroyForcibly) over SIGTERM (.destroy): a
deadline kill forces, a :term-style signal asks. Returns nil.
Destroy `proc` and every process it spawned, descendants first so a parent cannot respawn a child that was already reaped. `force?` selects SIGKILL (.destroyForcibly) over SIGTERM (.destroy): a deadline kill forces, a :term-style signal asks. Returns nil.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |