Ignore:
Timestamp:
May 7, 2009, 11:54:09 AM (13 years ago)
Author:
charles
Message:

(trunk libT) do for tr_close_file() what r8348 did for tr_open_file_for_scanning()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/fdlimit.c

    r8347 r8349  
    244244{
    245245#if defined(HAVE_POSIX_FADVISE)
     246    const int err = errno;
     247    /* Set hint about not caching this file.
     248       It's okay for this to fail silently, so don't let it affect errno */
    246249    posix_fadvise( fd, 0, 0, POSIX_FADV_DONTNEED );
     250    errno = err;
    247251#endif
    248252    close( fd );
Note: See TracChangeset for help on using the changeset viewer.