svn commit: r233745 - head/sys/netinet/ipfw

John Baldwin jhb at freebsd.org
Wed Apr 4 19:36:18 UTC 2012


On Wednesday, April 04, 2012 3:32:26 pm Julian Elischer wrote:
> On 4/4/12 4:57 AM, John Baldwin wrote:
> > On Tuesday, April 03, 2012 7:46:56 pm Julian Elischer wrote:
> >> On 3/31/12 4:20 AM, Gleb Smirnoff wrote:
> >>
> >>
> >> Many years ago there was the possibility that malloc M_WAITOK could
> >> return on shutdown or in some other rare error cases.
> >>
> >> Are we certain this is no longer true?
> > That hasn't been true in a long while.  In edge cases malloc() with 
M_WAITOK
> > will just panic rather than return NULL.  (e.g. "kmem too small")
> >
> what happens if you call reboot while it is waiting for free space?

The same thing that happens to any other thread asleep when we reboot, they 
eventually die one way or another when the CPU resets.  If it happens to be a 
user thread that doesn't respond to kill then you get a warning about not all 
processes dying during shutdown, but that's about it.

-- 
John Baldwin


More information about the svn-src-all mailing list