Re: Q: Darwin panicing too soon?
On mercredi, ao{ 6, 2003, at 13:04 Europe/Paris, Jonas Maebe wrote: On woensdag, aug 6, 2003, at 12:50 Europe/Brussels, Stiphane Sudre wrote: } else if (retval != KERN_RESOURCE_SHORTAGE) { /* would like to cause a zone_gc() */ (1) panic("zalloc"); } ---- Q: Instead of panicing at (1), couldn't it just be possible to return NULL? KERN_RESOURCE_SHORTAGE is described as: /* A system resource could not be allocated to fulfill * this request. This failure may not be permanent. */ The issue is that once you "Kernel Panic"ed, it's 'permanent' till the next reboot. Note that it panics if retval is *different* from KERN_RESOURCE_SHORTAGE". So in case of KERN_RESOURCE_SHORTAGE, whatever comes below will be executed. Correct. I thought it was a == . This explains all. _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.
participants (1)
-
Stéphane Sudre