bug-cvs
[Top][All Lists]
Advanced

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

Re: [bug-gnulib] valloc()?


From: Bruno Haible
Subject: Re: [bug-gnulib] valloc()?
Date: Thu, 3 Mar 2005 19:19:34 +0100
User-agent: KMail/1.5

Derek Price wrote:
> Should this error still be exiting (EXIT_FAILURE) when this function
> is defined to return NULL on failure?

In this case the error is not "memory exhausted", it is "cannot open
/dev/zero". This can happen for example if someone is working in a chroot
environment that is incorrectly set up. I think a clear error message is
good in this case. But I agree it's hard to say in advance which behaviour
is better.

Bruno





reply via email to

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