|
From: | Peter Maydell |
Subject: | Re: [Qemu-devel] [PATCH] oslib: make error handling more reasonable |
Date: | Mon, 13 Feb 2012 14:30:32 +0000 |
On 13 February 2012 14:04, Markus Armbruster <address@hidden> wrote: > I consider abort() on OOM somewhat eccentric. abort() is for > programming errors. Resource shortage is an environmental error that is > sometimes (but not always) caused by a programming error. > > I'd rather inconvenience programmers (by making it a little bit harder > to debug programming errors that cause OOM) than confuse users with > inappropriate scary "crashes". I think the rationale for aborting here is that you're already accepting "program just dies" behaviour for out-of-memory errors via the kernel's OOM-killer... -- PMM
[Prev in Thread] | Current Thread | [Next in Thread] |