system.signal.default

Synopsis

local system = require "system"
system.signal.default(signal: integer)

Description

Reset signal's handling to the system’s default.

There’s no need to set the default handlers at the start of the program. The Emilua runtime will already do that for you.
This function will fail if you try to reset a signal for which a system.signal.set object exists.
Only the master VM is allowed to use this function.
This function is only available to POSIX systems.