Date: Wed, 20 Jan 1999 15:16:56 -0800 From: Mike Smith <mike@smith.net.au> To: Brian Feldman <green@unixhelp.org> Cc: current@FreeBSD.ORG Subject: Re: Truth to M_WAITOK? Message-ID: <199901202316.PAA03949@dingo.cdrom.com> In-Reply-To: Your message of "Wed, 20 Jan 1999 18:07:22 EST." <Pine.BSF.4.05.9901201806090.28753-100000@janus.syracuse.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> Would someone PLEASE tell us all if malloc can really return NULL now with > flags & M_WAITOK? I've gotten contradictory answers... I went back and looked at the code again. It looks like M_WAITOK will either return non-NULL or panic; it shouldn't be capable of returning NULL. Ideally, it shouldn't panic either (why is it only that M_WAITOK can panic, and M_NOWAIT can't?). -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901202316.PAA03949>