Logo ProcessKit API Reference

Signal Type

A signal to broadcast to every process in a `ProcessGroup` via `ProcessGroup.Signal`. The curated variants map to the POSIX signal of the same name on Unix. On **Windows** `Kill` maps to the Job Object terminate (the same hard kill as `ProcessGroup.KillAll`), and `Int`/`Term` are delivered as a best-effort console CTRL+BREAK — but only to a child started with `Command.WindowsCtrlSignals()`; without one (or without a console to share) they yield `ProcessError.Unsupported`, never a silent downgrade. Every other variant yields `ProcessError.Unsupported` on Windows. `Other` is an escape hatch carrying a raw signal number on Unix (e.g. `SIGWINCH`); it is always unsupported on Windows. `SIGSTOP`/`SIGCONT` are deliberately absent from the curated set — pause and resume the whole tree with `ProcessGroup.Suspend` / `ProcessGroup.Resume`, which are portable (Windows included); `Signal.Other` with the raw `SIGSTOP` number remains available when the raw signal is specifically wanted on Unix.

Union cases

Union case Description

Hup

Full Usage: Hup

`SIGHUP` — hangup; conventionally "reload configuration".

Int

Full Usage: Int

`SIGINT` — keyboard interrupt.

Kill

Full Usage: Kill

`SIGKILL` — unblockable kill. On Windows: terminate the Job Object.

Other SignalNumber

Full Usage: Other SignalNumber

Parameters:
    SignalNumber : int

A raw signal number, passed through verbatim (Unix only). It must be a valid signal; it lands in the *signal* argument of `kill(pid, sig)` (never the pid/target), so an out-of-range value simply fails the send — it cannot retarget the signal.

SignalNumber : int

Quit

Full Usage: Quit

`SIGQUIT` — quit, typically with a core dump.

Term

Full Usage: Term

`SIGTERM` — polite request to exit.

Usr1

Full Usage: Usr1

`SIGUSR1` — user-defined.

Usr2

Full Usage: Usr2

`SIGUSR2` — user-defined.

Instance members

Instance member Description

this.IsHup

Full Usage: this.IsHup

Returns: bool
Returns: bool

this.IsInt

Full Usage: this.IsInt

Returns: bool
Returns: bool

this.IsKill

Full Usage: this.IsKill

Returns: bool
Returns: bool

this.IsOther

Full Usage: this.IsOther

Returns: bool
Returns: bool

this.IsQuit

Full Usage: this.IsQuit

Returns: bool
Returns: bool

this.IsTerm

Full Usage: this.IsTerm

Returns: bool
Returns: bool

this.IsUsr1

Full Usage: this.IsUsr1

Returns: bool
Returns: bool

this.IsUsr2

Full Usage: this.IsUsr2

Returns: bool
Returns: bool

Type something to start searching.