Liking cljdoc? Tell your friends :D

bushka.process

Process lifecycle and environment access — a JVM mirror of bun.process. See docs/MIRROR.md; note the documented tty? (stdout-TTY approximation) and on-interrupt (shutdown-hook vs SIGINT-listener) divergences.

Process lifecycle and environment access — a JVM mirror of `bun.process`.
See `docs/MIRROR.md`; note the documented `tty?` (stdout-TTY approximation)
and `on-interrupt` (shutdown-hook vs SIGINT-listener) divergences.
raw docstring

*exit-fn*clj

Indirection point so tests can capture exit-code without killing the JVM. Production callers don't rebind.

Indirection point so tests can capture exit-code without killing the JVM.
Production callers don't rebind.
raw docstring

envclj

(env)

Returns a Clojure map of environment variable name -> string.

Returns a Clojure map of environment variable name -> string.
raw docstring

exit!clj

(exit! code)

Terminates the process with the given exit code.

Terminates the process with the given exit code.
raw docstring

on-interruptclj

(on-interrupt f)

Registers f to run on process interruption (Ctrl-C / SIGTERM) via a JVM shutdown hook. Returns the hook Thread (pass to Runtime.removeShutdownHook to deregister). The hook runs DURING JVM shutdown — f must not call exit!.

Registers f to run on process interruption (Ctrl-C / SIGTERM) via a JVM
shutdown hook. Returns the hook Thread (pass to Runtime.removeShutdownHook
to deregister). The hook runs DURING JVM shutdown — f must not call exit!.
raw docstring

tty?clj

(tty?)

Returns true if both stdin and stdout are TTYs (approximate stdout-TTY mirror).

Returns true if both stdin and stdout are TTYs (approximate stdout-TTY mirror).
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close