For MPSAFE syscall operation, CURSIG->__cursig->issignal() may be called
commitbf189c26eef6d4c0eddb382f269c593999439812
authorMatthew Dillon <dillon@dragonflybsd.org>
Thu, 1 Dec 2005 18:54:20 +0000 (1 18:54 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Thu, 1 Dec 2005 18:54:20 +0000 (1 18:54 +0000)
treee96e6f71f3413c12a70f827add2cc491f3d88f25
parentdf8d1020745c0668cc93819c201cb92340fb7cdd
For MPSAFE syscall operation, CURSIG->__cursig->issignal() may be called
without the MP lock held.  At the moment issignal() needs to be MP locked
so wrap the function in the lock.  Note that issignal() is only called if
there is a signal pending so this will not disrupt kern.syscall_mpsafe
operation.
sys/kern/kern_sig.c