CVSROOT: /cvs Module name: src Changes by: clau...@cvs.openbsd.org 2022/05/13 09:32:00
Modified files: sys/kern : kern_fork.c kern_sig.c kern_synch.c sys/sys : proc.h signalvar.h sysctl.h Log message: Use the process ps_mtx to protect the process sigacts structure. With this cursig(), postsig() and trapsignal() become safe to be called without KERNEL_LOCK. As a side-effect sleep with PCATCH no longer needs the KERNEL_LOCK either. Since sending a signal can happen from interrupt context raise the ps_mtx IPL to high. Feedback from mpi@ and kettenis@ OK kettenis@