Issue #3471 has been reported by tuxillo. ---------------------------------------- Bug #3471: kernel: sigwaitinfo() and sigtimedwait() don't return the sender's pid and uid http://bugs.dragonflybsd.org/issues/3471
* Author: tuxillo * Status: New * 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
