ae.sys.signals

POSIX signal handlers.

Public Imports

core.sys.posix.signal
public import core.sys.posix.signal;
Undocumented in source.

Members

Aliases

SignalHandler
alias SignalHandler = void delegate() nothrow @(system)

Handler callback type.

Functions

addSignalHandler
void addSignalHandler(int signum, SignalHandler fn)

Register a handler for a POSIX signal.

collectSignal
bool collectSignal(int signum, void delegate() code)

If the signal signum is raised during execution of code, ignore it. Returns true if the signal was raised.

removeSignalHandler
void removeSignalHandler(int signum, SignalHandler fn)

Unregister a previously registered signal handler.

Meta

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Authors

Vladimir Panteleev <ae@cy.md>