in reverie-ptrace/src/timer.rs [476:486]
fn generated_signal(&self, signal: &libc::siginfo_t) -> bool {
signal.si_signo == MARKER_SIGNAL as i32
// If we sent an artificial signal, it doesn't have any siginfo
&& (self.send_artificial_signal
// If not, the fd should match. This could possibly lead to a
// collision, because an fd comparing-equal to this one in another
// process could also send a signal. However, that it would also do so
// as SIGSTKFLT is effectively not going to happen.
|| (Self::is_timer_generated_signal(signal)
&& get_si_fd(signal) == self.timer.raw_fd()))
}