OpenBSD cvs log

created 2024-10-12T23:38:12Z
begin 2024-10-09T00:00:00Z
end 2024-10-10T00:00:00Z
path src/sys
commits 4

date 2024-10-09T00:38:25Z
author jsg
files src/sys/dev/acpi/ahci_acpi.c log diff annotate
src/sys/dev/acpi/ipmi_acpi.c log diff annotate
src/sys/dev/acpi/ohci_acpi.c log diff annotate
src/sys/dev/acpi/sdhc_acpi.c log diff annotate
message make attachments use pre-existing activate functions; ok deraadt@

date 2024-10-09T00:38:26Z
author jsg
files src/sys/arch/powerpc64/dev/ipmi_opal.c log diff annotate
src/sys/dev/acpi/ehci_acpi.c log diff annotate
src/sys/dev/acpi/xhci_acpi.c log diff annotate
src/sys/dev/fdt/ipmi_fdt.c log diff annotate
src/sys/dev/fdt/sdhc_fdt.c log diff annotate
src/sys/dev/i2c/ipmi_i2c.c log diff annotate
message make attachments use pre-existing activate functions; ok deraadt@

date 2024-10-09T08:39:49Z
author claudio
files src/sys/kern/kern_sig.c log diff annotate
src/sys/sys/signalvar.h log diff annotate
message Convert prsignal() into a real function

Also do not use ps_mainproc as the thread the signal is send to. Sending
a signal to ps_mainproc may not work reliably if it already exited. Use
TAILQ_FIRST(&pr->ps_threads) instead but first check that the process has
not yet entered exit1().

OK mpi@

date 2024-10-09T08:58:19Z
author claudio
files src/sys/kern/kern_sig.c log diff annotate
src/sys/kern/sched_bsd.c log diff annotate
message Clear ps_xsig when continuing after a PS_TRACED stop.

Also remove the ps_xsig handling in setrunnable() it is in the wrong spot
and causes signals to be delivered over and over again.

Attaching to an already stopped process is affected by this. The SIGSTOP
sent by ptrace is now ignored in ptsignal() and as a result gdb will hang
in wait4() until a SIGCONT is delivered to the process. After that all
works as usual.

OK mpi@