diff options
author | tanimura <tanimura@FreeBSD.org> | 2002-04-20 12:02:52 +0000 |
---|---|---|
committer | tanimura <tanimura@FreeBSD.org> | 2002-04-20 12:02:52 +0000 |
commit | e2acd5cecf61f060255d467b8d38cd35f941fb1c (patch) | |
tree | db003c23254ef3cdf9c6c9bea269469378e11e7d /sys/kern/kern_descrip.c | |
parent | 487a22adbf7d14b574b29683ada3bc989bbfb261 (diff) | |
download | FreeBSD-src-e2acd5cecf61f060255d467b8d38cd35f941fb1c.zip FreeBSD-src-e2acd5cecf61f060255d467b8d38cd35f941fb1c.tar.gz |
Push down Giant for setpgid(), setsid() and aio_daemon(). Giant protects only
malloc(9) and free(9).
Diffstat (limited to 'sys/kern/kern_descrip.c')
-rw-r--r-- | sys/kern/kern_descrip.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c index 0476493..06743d1 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -599,7 +599,9 @@ funsetownlst(sigiolst) SLIST_REMOVE(&pg->pg_sigiolst, sigio, sigio, sio_pgsigio); PGRP_UNLOCK(pg); crfree(sigio->sio_ucred); + mtx_lock(&Giant); FREE(sigio, M_SIGIO); + mtx_unlock(&Giant); PGRP_LOCK(pg); } else /* if (p != NULL) */ { KASSERT(sigio->sio_pgid > 0, ("Pgrp sigio in proc sigio list")); @@ -607,7 +609,9 @@ funsetownlst(sigiolst) SLIST_REMOVE(&p->p_sigiolst, sigio, sigio, sio_pgsigio); PROC_UNLOCK(p); crfree(sigio->sio_ucred); + mtx_lock(&Giant); FREE(sigio, M_SIGIO); + mtx_unlock(&Giant); PROC_LOCK(p); } } |