Skip to main content

Module unix

Module unix 

Source
Expand description

Unix-specific types for signal handling.

This module is only defined on Unix platforms and contains the primary Signal type for receiving notifications of signals.

Structsยง

OsExtraData ๐Ÿ”’
OsStorage ๐Ÿ”’
Signal
An listener for receiving a particular type of OS signal.
SignalInfo ๐Ÿ”’
SignalKind
Represents the specific kind of signal to listen for.

Functionsยง

action ๐Ÿ”’
Our global signal handler for all signals registered by this module.
ctrl_c ๐Ÿ”’
signal
Creates a new listener which will receive notifications when the current process receives the specified signal kind.
signal_enable ๐Ÿ”’
Enables this module to receive signal notifications for the signal provided.
signal_with_handle ๐Ÿ”’