SignalFileDescriptor
public struct SignalFileDescriptor: FileDescriptor
SignalFileDescriptor is a file descriptor for a signal(s) as described in signalfd(2).
-
The file descriptor for the signal.
Declaration
Swift
public let fileDescriptor: Int32
-
Reads the next signal from the file descriptor. See signalfd(2) for details on the behaviour of this call.
Declaration
Swift
public func next() throws -> Signal
-
Releases the resources for this file descriptor.
Declaration
Swift
public func close() throws