need some debugging help
Pawel Jakub Dawidek
nick at garage.freebsd.pl
Mon Sep 1 03:28:22 PDT 2003
On Mon, Sep 01, 2003 at 12:48:41AM -0600, Kenneth D. Merry wrote:
+> - I tried just holding a mutex all the time, but obviously you can't
+> malloc while holding a mutex (except Giant), and the sysctl code does a
+> number of mallocs. (The original cause of this problem -- M_WAITOK
+> mallocs.)
I've proposed some time ago changing M_WAITOK to M_NOWAIT, because
function/macros responsible for sysctl creation could failed from other
reasons, so I don't see any reason why they couldn't fail because of
insufficient memory. Caller is obliged to check return value...
--
Pawel Jakub Dawidek pawel at dawidek.net
UNIX Systems Programmer/Administrator http://garage.freebsd.pl
Am I Evil? Yes, I Am! http://cerber.sourceforge.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 305 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20030901/e51f9bec/attachment.bin
More information about the freebsd-current
mailing list