Date: Mon, 14 Sep 2009 16:13:12 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/dev/syscons/daemon daemon_saver.c Message-ID: <200909141613.n8EGDRwO032739@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2009-09-14 16:13:12 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) sys/dev/syscons/daemon daemon_saver.c Log: SVN rev 197194 on 2009-09-14 16:13:12Z by jhb 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) Revision Changes Path 1.28.2.2 +15 -3 src/sys/dev/syscons/daemon/daemon_saver.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909141613.n8EGDRwO032739>