SignalExt

Undocumented in source.

Constructors

this
this(int[] signals, int[] ignore_signals)

Constructor. Creates the internal signal event, handling the specified signals. The event (accessible via the event() method) must be registered with epoll.

Members

Functions

atExit
void atExit(IApplication app, istring[] args, int status, ExitException exception)

atExit IApplicationExtension method.

ignore
void ignore(int[] signals)

Ignores the signals.

onExitException
ExitException onExitException(IApplication app, istring[] args, ExitException exception)

Unused IApplicationExtension methods.

order
int order()

Extension order. This extension uses -2_000 because it should be called before the LogExt and StatsExt.

postRun
void postRun(IApplication app, istring[] args, int status)

Unused IApplicationExtension methods.

preRun
void preRun(IApplication app, istring[] args)

Unused IApplicationExtension methods.

register
typeof(this) register(int signal)

Adds the specified signal to the set of signals handled by this extension.

selectClient
ISelectClient selectClient()

ISelectClient getter, for registering with epoll.

Mixins

__anonymous
mixin ExtensibleClassMixin!(ISignalExtExtension)

Adds a list of extensions (this.extensions) and methods to handle them. See ExtensibleClassMixin documentation for details.

Inherited Members

From IApplicationExtension

IApplication
alias IApplication = .IApplication

Alias of IApplication, for use by implementing classes without needing to import ocean.util.app.model.IApplication.

preRun
void preRun(IApplication app, istring[] args)

Function executed before the program runs.

postRun
void postRun(IApplication app, istring[] args, int status)

Function executed after the program runs.

atExit
void atExit(IApplication app, istring[] args, int status, ExitException exception)

Function executed at program exit.

onExitException
ExitException onExitException(IApplication app, istring[] args, ExitException exception)

Function executed if (and only if) an ExitException was thrown.

Meta