diff options
Diffstat (limited to 'sys/kern/kern_sig.c')
-rw-r--r-- | sys/kern/kern_sig.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index a6d9f75..c49c336 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -864,7 +864,7 @@ killpg1(cp, sig, pgid, all) /* * broadcast */ - lockmgr(&allproc_lock, LK_SHARED, NULL, CURPROC); + ALLPROC_LOCK(AP_SHARED); LIST_FOREACH(p, &allproc, p_list) { if (p->p_pid <= 1 || p->p_flag & P_SYSTEM || p == cp || !CANSIGNAL(cp, p, sig)) @@ -873,7 +873,7 @@ killpg1(cp, sig, pgid, all) if (sig) psignal(p, sig); } - lockmgr(&allproc_lock, LK_RELEASE, NULL, CURPROC); + ALLPROC_LOCK(AP_RELEASE); } else { if (pgid == 0) /* |