From 58f1f5c532ae9a81c60b6a1a7e54ad895e064a72 Mon Sep 17 00:00:00 2001 From: tanimura Date: Fri, 3 May 2002 05:32:25 +0000 Subject: Fix the lock order reversal between the sigio lock and a process/pgrp lock in funsetownlst() by locking the sigio lock across funsetownlst(). --- sys/kern/kern_exit.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/kern/kern_exit.c') diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index 2927647..ed6b6f0 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -191,9 +191,11 @@ exit1(td, rv) * Reset any sigio structures pointing to us as a result of * F_SETOWN with our pid. */ + SIGIO_LOCK(); PROC_LOCK(p); funsetownlst(&p->p_sigiolst); PROC_UNLOCK(p); + SIGIO_UNLOCK(); /* * Close open files and release open-file table. -- cgit v1.1