Re: valloc()?

Bruno Haible <[email protected]> Thu, 3 Mar 2005 19:19:34 +0100
Newsgroups gmane.comp.lib.gnulib.bugs,gmane.comp.version-control.cvs.bugs
Message-ID <[email protected]>
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