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.
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.
(env)Returns a Clojure map of environment variable name -> string.
Returns a Clojure map of environment variable name -> string.
(exit! code)Terminates the process with the given exit code.
Terminates the process with the given exit code.
(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!.
(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).
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 |