1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-09 13:42:56 +00:00
freebsd/sys/alpha
Alfred Perlstein 1419eacb86 Squish the "could sleep with process lock" messages caused by calling
uifind() with a proc lock held.

change_ruid() and change_euid() have been modified to take a uidinfo
structure which will be pre-allocated by callers, they will then
call uihold() on the uidinfo structure so that the caller's logic
is simplified.

This allows one to call uifind() before locking the proc struct and
thereby avoid a potential blocking allocation with the proc lock
held.

This may need revisiting, perhaps keeping a spare uidinfo allocated
per process to handle this situation or re-examining if the proc
lock needs to be held over the entire operation of changing real
or effective user id.

Submitted by: Don Lewis <dl-freebsd@catspoiler.org>
2002-06-19 06:39:25 +00:00
..
alpha - Fixup / remove obsolete comments. 2002-06-07 05:47:35 +00:00
compile
conf Botcho. I included in the last commit the 2002-06-16 06:48:42 +00:00
include
isa
linux
mcbus
osf1 Squish the "could sleep with process lock" messages caused by calling 2002-06-19 06:39:25 +00:00
pci
tc
tlsb
Makefile