• Daniel Black's avatar
    my_close: Don't retry on close · 44898d28
    Daniel Black authored
    According to close(2) "Retrying the close() after a failure return is
    the wrong thing to do"
    
    Even the EINTR case its maybe closed. Take the prudent approach here
    an risk leaking one file descriptor rather than closing one that is
    nolonger ours.
    44898d28
my_open.c 4.15 KB