A safe wrapper around a Linux signalfd (man 2 signalfd).
A signalfd can be used for non-synchronous signals (such as SIGCHLD) so that signals can be processed without the use of a signal handler.
Creates a new SignalFd for the given signal, blocking the normal handler for the signal as well. Since we mask out the normal handler, this is a risky operation - signal masking will persist across fork and even exec so the user of SignalFd should think long and hard about when to mask signals.
Read a siginfo struct from the signalfd, if available.
Auto Trait Implementations§
Returns the argument unchanged.