-
jbkhrm.. today with libumem you can define an 'out of memory' callback, which can either return a status to retry or a 0-255 exit value
-
jbkwould it be reasonable to add an option to do something like call upanic(2) ?
-
jbk(it looks like from how it's defined it would be pretty straightforward, and shouldn't break anything exiting)
-
jclulowjbk: as in, UMEM_CALLBACK_PANIC basically?
-
jclulowas a return from the callback you pass to umem_nofail_callback(3MALLOC)?
-
jbkyeah..
-
jbk(I didn't see one unless I really missed it)
-
jbkif you look at the definition of UMEM_CALLBACK_EXIT(status).. it's just 0x100 | (status & 0xff) .. so could (for example) maybe define UMEM_CALLBACK_PANIC as 0x200 or such
-
jbk(just thinking out loud)
-
jbk(could even provide a default implementation if someone didn't want to do anything else)..