[DragonFlyBSD - Bug #3471] (Resolved) kernel: sigwaitinfo() and sigtimedwait() don't return the sender's pid and uid
tuxillo
bugtracker-admin at leaf.dragonflybsd.org
Wed Nov 18 15:46:56 PST 2026
Issue #3471 has been updated by tuxillo.
Status changed from New to Resolved
% Done changed from 0 to 100
----------------------------------------
Bug #3471: kernel: sigwaitinfo() and sigtimedwait() don't return the sender's pid and uid
http://bugs.dragonflybsd.org/issues/3471#change-14966
* Author: tuxillo
* Status: Resolved
* Priority: Normal
* Target version: 6.6
* Start date: 2026-11-18
----------------------------------------
As of master (3351c65f80), sigwaitinfo() and sigtimedwait() return si_pid
and si_uid as 0 for a signal sent with kill(). The same signal caught by
an SA_SIGINFO handler gets the right values. 6.4 has the same problem.
The kernel keeps the last sender of each signal in ps_frominfo[] and
sendsig() fills it in for handlers, but kern_sigtimedwait() only sets
si_signo.
Found while bringing up gdm. It waits for the X server's SIGUSR1 with
sigwaitinfo() and checks si_pid, so it never sees the server as ready and
the greeter never shows up.
Test program and patch attached. Run the test as a normal user; as root
a zero si_uid looks right.
---Files--------------------------------
sigwait_sender.c (2.58 KB)
0001-kernel-report-the-sender-in-sigwaitinfo-and-sigtimed.patch (1.58 KB)
--
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account
More information about the Bugs
mailing list