On Wed, Jan 21, 2009 at 4:29 PM, Ian Kent <[email protected]> wrote: > In this case, make_fullpath() is called from only one place and its > > return value is checked, but I was asking in general, yes. > > Not sure I understand the question. > > Functions like make_fullpath() need to return a NULL in such a case > because it has to be up to the caller to decide on how to handle the > fail. > > In the case above it is questionable whether we continue the prune but > then another thread could free() heap memory so we might still be able > to make some useful progress.
A daemon shouldn't run out of memory. Generally speaking, it's an exceptional condition that justifies abnormal termination.
_______________________________________________ autofs mailing list [email protected] http://linux.kernel.org/mailman/listinfo/autofs
