Roland McGrath <[EMAIL PROTECTED]> writes:

> I don't think those are very usefu.

I guess your point is that it doesn't matter if the nfs-client
translator crashes (resulting in EGRATIOUS to the caller?) or returns
some other error when it runs out of memory. If it's a passive
translator, it will be restarted when needed.

However, I think code like

   nn = malloc (sizeof (struct netnode));
   assert (nn);

is a misuse of assert. The code will crash in different ways if you
compile it with or without NDEBUG. If one doesn't want to deal with
malloc failures, it's better to explicitly call abort on failure,
preferably by uing xmalloc instead of malloc.

Regards,
/Niels


_______________________________________________
Bug-hurd mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-hurd

Reply via email to