Mono Class Library: Mono.Unix.Native.Stdlib Overview | MembersMono.Unix.Native.Stdlib.SetSignalAction Method |
Specifies what should happen when a signal is emitted. [Edit]
|
- signal
- Documentation for this section has not yet been entered. [Edit]
- action
- A Mono.Unix.Native.SignalAction specifying what to do when the signum signal is emitted. [Edit]
A int; if equal to 0, the call was successful. -1 is returned on failure, and sets Stdlib.GetLastError to indicate the error.
Usage
Possible errors include:
[Edit]
Error Details Errno.EINVAL signum is invalid.
This is the safer, restricted form of Stdlib.signal(Signum, SignalHandler). While signal(2) permits an arbitrary method to be set as the signal handler, this method permits specifying only the default, ignore, or error handlers.
Operation
If action is SignalAction.Default, then this method is equivalent to signal(signum, SIG_DFL).
If action is SignalAction.Ignore, then this method is equivalent to signal(signum, SIG_IGN).
If action is SignalAction.Error, then this method is equivalent to signal(signum, SIG_ERR).
[Edit]
Namespace: Mono.Unix.Native
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0