Skip to main content

Module interruption

Module interruption 

Source
Expand description

Interruption of the process by signals.

On Unix, SIGINT, SIGTERM and SIGHUP ask the engine to end. Running tracks get a grace period to finish, and a second signal or the end of the grace period stops them.

On Windows, as a best effort, the console control events do the same: Ctrl+C and Ctrl+Break, as well as the closing of the console, logoff and shutdown. Windows ends the process a few seconds after these last three, so running tracks get a shorter grace period then.

Enums§

Interruption
How the engine stopped after an interruption.

Functions§

last_interruption
Gives the last interruption handled by live_until_interrupted in this process.
live_until_interrupted
Lives engine until it ends, or until the process is interrupted.
signal_name
Gives the name of an interrupting signal.