Mono Class Library: Mono.Unix.UnixSignal Overview | Members

Mono.Unix.UnixSignal Constructor

Creates and initializes a Mono.Unix.UnixSignal class instance.

public UnixSignal (Mono.Unix.Native.RealTimeSignum rtsig)

Parameters

rtsig
A Mono.Unix.Native.RealTimeSignum value specifying which Unix realtime signal this instance should count.

Exceptions

TypeReason
ArgumentException The internal signal handler could not be registered or the signal was registered outside of Mono.Posix.
ArgumentOutOfRangeExceptionsignum is not a valid signal value.

Remarks

This constructor initializes the UnixSignal.RealTimeSignum property of the new instance using signum.

Once this constructor completes execution, all signal emissions between the completion of the constructor and the invocation of System.Threading.WaitHandle.Close will be counted, updating the UnixSignal.Count property.

Realtime signal registration has the constraint that it cannot override signals registered from outside of Mono.Posix. This constraint exists because the underlying aplication and runtime can use some signals to implement some specific feature.

Requirements

Namespace: Mono.Unix
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 2.0.0.0