Skip to content

Interface: KillOptions

Graceful and forced shutdown policy for kill.

optional forceSignal?: false | Signals

Signal sent to survivors. false disables forced termination. Defaults to SIGKILL.


optional forceTimeoutMs?: number

Time to poll and force newly discovered descendants. Defaults to 4 seconds.


optional gracefulSignal?: false | Signals

Signal sent to the snapshotted process tree. false skips this phase. Defaults to SIGTERM.


optional gracefulSignalTarget?: "root" | "tree"

Processes receiving the graceful signal. Defaults to the complete process tree.


optional gracefulTimeoutMs?: number

Time to wait for graceful shutdown. Defaults to 10 seconds.


optional pollIntervalMs?: number

Interval used to refresh and poll the process tree. Defaults to 100 milliseconds.