bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: why does getdate include xalloc-die.c?


From: Eric Blake
Subject: Re: why does getdate include xalloc-die.c?
Date: Tue, 28 Sep 2010 08:16:39 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100921 Fedora/3.1.4-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.4

On 09/28/2010 08:13 AM, Sam Steingold wrote:
does this mean that on memory allocation failure in getdate clisp will
exit?
this is no good.

If you don't do anything about the default xalloc_die, then yes, getdate() will exit on allocation failure. But if you provide an alternate xalloc_die() implementation and avoid the gnulib module xalloc-die, then you can react to allocation failure however you best see fit. The same goes for lots of other modules that use xalloc for allocation reporting, where the default behavior exit()s, but you need not be stuck with the default.

--
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]