diff options
author | jhb <jhb@FreeBSD.org> | 2002-04-16 17:04:21 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2002-04-16 17:04:21 +0000 |
commit | 2ebbf84d61aded530c93b5bb90300c169cea0fe9 (patch) | |
tree | f1f21df8f11372057e81575afbbeb9393c413e60 /sys/compat/svr4 | |
parent | 7202da4491f33663719dc05a4db31422f6937123 (diff) | |
download | FreeBSD-src-2ebbf84d61aded530c93b5bb90300c169cea0fe9.zip FreeBSD-src-2ebbf84d61aded530c93b5bb90300c169cea0fe9.tar.gz |
- Lock proctree_lock instead of pgrpsess_lock.
- Exclusively lock proctree_lock while calling leavepgrp().
Diffstat (limited to 'sys/compat/svr4')
-rw-r--r-- | sys/compat/svr4/svr4_misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/svr4/svr4_misc.c b/sys/compat/svr4/svr4_misc.c index c6870b3..d7028e3 100644 --- a/sys/compat/svr4/svr4_misc.c +++ b/sys/compat/svr4/svr4_misc.c @@ -1337,13 +1337,13 @@ loop: * Finally finished with old proc entry. * Unlink it from its process group and free it. */ + sx_xlock(&proctree_lock); leavepgrp(q); sx_xlock(&allproc_lock); LIST_REMOVE(q, p_list); /* off zombproc */ sx_xunlock(&allproc_lock); - sx_xlock(&proctree_lock); LIST_REMOVE(q, p_sibling); sx_xunlock(&proctree_lock); |