freebsd-dev/sys/dev/syscons/daemon
John Baldwin 9425bee7a0 Don't malloc a buffer while holding the prison0 mutex. Instead, use a loop
where we figure out the hostname length under the lock, malloc the buffer
with the lock dropped, then recheck the length under the lock and loop again
if the buffer is now too small.

Tested by:	Norbert Koch  nkoch  demig de
MFC after:	3 days
2009-09-10 12:58:37 +00:00
..
daemon_saver.c Don't malloc a buffer while holding the prison0 mutex. Instead, use a loop 2009-09-10 12:58:37 +00:00