Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [RFC] Cleaning up die() error messages

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:08

"H. Peter Anvin" [off-list ref] writes:
Not unless any of those linked structures can be reached from outside 
the git library.
OK.  How about things like open file descriptors and mmap'ed
regions then?  That is:

    fd = open();
    xmalloc(); /* may die now */
    close(fd);

I think in the long run we would be better off if we properly
dealt with the case where (x)malloc returns NULL.  Of course,
that would make libification a bigger task, so we do not have to
do it from day one.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help