Liking cljdoc? Tell your friends :D

cargo.spawn

Utilities for spawning processes and managing their lifecycle.

Linux Note: if you spawn a process that spawns its own children, killing the parent will not kill its children and you may be left with a zombie if you are not careful. See kill-r below.

Utilities for spawning processes and managing their lifecycle.

Linux Note: if you spawn a process that spawns its own children, killing
the parent will not kill its children and you may be left with a zombie
if you are not careful. See kill-r below.
raw docstring

?json->edncljs

(?json->edn line)
source

_cljs

source

add-CP!cljs

(add-CP! id cp)
source

CHILD_PROCESSEScljs

source

collected-spawncljs

(collected-spawn cmd args {:keys [key silent? json->edn?] :as opts})

collect CP output as if it were an async exec call, but allow output logging during process execution. Spawns are not persistent but may be long running.

Returns pchan<[ ?js/error ?[exit-code stdout stderr] ]> where stdout/stderr json is automatically converted to edn where applicable. Cargo writes line delimited json to stdout regardless if it represents a clean exit or not. [0 [{:some :stdout} {:more :stdout}] ['some stderr' 'more stderr']

collect CP output as if it were an async exec call, but allow output logging
during process execution. Spawns are not persistent but may be long running.

Returns pchan<[ ?js/error ?[exit-code stdout stderr] ]> where stdout/stderr
json is automatically converted to edn where applicable. Cargo writes line
delimited json to stdout regardless if it represents a clean exit or not.
 [0 [{:some :stdout} {:more :stdout}] ['some stderr' 'more stderr']
sourceraw docstring

get-child-procscljs

(get-child-procs)
source

get-CPcljs

(get-CP id)
source

kill!cljs

(kill! id)

given a child-process id, kill it and remove reference from memory. Returns false if killing fails.

given a child-process id, kill it and remove reference from memory.
Returns false if killing fails.
sourceraw docstring

kill-9cljs

(kill-9 pid)
source

kill-all!cljs

(kill-all!)
source

kill-rcljs

(kill-r pid)

kill a process and its children recursively

kill a process and its children recursively
sourceraw docstring

pgrep-Pcljs

(pgrep-P)
(pgrep-P pid)

Linux only. if no arg looks for children of current node process. if pid arg, looks for its children. @return {?IVector}

Linux only.
if no arg looks for children of current node process.
if pid arg, looks for its children.
@return {?IVector}
sourceraw docstring

remove-CP!cljs

(remove-CP! id)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close