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
|
Full Usage:
Hup
|
`SIGHUP` — hangup; conventionally "reload configuration". |
Full Usage:
Int
|
`SIGINT` — keyboard interrupt. |
Full Usage:
Kill
|
`SIGKILL` — unblockable kill. On Windows: terminate the Job Object. |
Full Usage:
Other SignalNumber
Parameters:
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.
|
Full Usage:
Quit
|
`SIGQUIT` — quit, typically with a core dump. |
Full Usage:
Term
|
`SIGTERM` — polite request to exit. |
Full Usage:
Usr1
|
`SIGUSR1` — user-defined. |
Full Usage:
Usr2
|
`SIGUSR2` — user-defined. |
Instance members
| Instance member |
Description
|
Full Usage:
this.IsHup
Returns: bool
|
|
Full Usage:
this.IsInt
Returns: bool
|
|
Full Usage:
this.IsKill
Returns: bool
|
|
Full Usage:
this.IsOther
Returns: bool
|
|
Full Usage:
this.IsQuit
Returns: bool
|
|
Full Usage:
this.IsTerm
Returns: bool
|
|
Full Usage:
this.IsUsr1
Returns: bool
|
|
Full Usage:
this.IsUsr2
Returns: bool
|
|
ProcessKit API Reference