High-level API for native signal handling. Signal values are retrieved dynamically from the system to ensure cross-platform accuracy.

Static variables

staticread onlyABRT:Int

staticread onlyBREAK:Int

staticread onlyBUS:Int

staticread onlyFPE:Int

staticread onlyHUP:Int

staticread onlyILL:Int

staticread onlyINT:Int

staticread onlyKILL:Int

staticread onlyQUIT:Int

staticread onlySEGV:Int

staticread onlyTERM:Int

staticread onlyTRAP:Int

staticread onlyUSR1:Int

staticread onlyUSR2:Int

Static methods

staticraise(signo:Int):Bool

Sends a signal to the current process.

Parameters:

signo

The signal number to raise.

Returns:

True if successful.

@:has_untypedstatictrap(signo:Int, callback:(signo:Int) ‑> Void):Bool

Traps a native signal and executes the provided callback.

Parameters:

signo

The signal number to trap.

callback

Function to call when the signal is received.

Returns:

True if successful.