freebsd-dev/sys/dev/syscons/daemon
John Baldwin 3c31e305c0 MFC 197062:
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.

Approved by:	re (kib)
2009-09-14 16:13:12 +00:00
..
daemon_saver.c MFC 197062: 2009-09-14 16:13:12 +00:00