Changeset 8347


Ignore:
Timestamp:
May 6, 2009, 7:06:19 PM (12 years ago)
Author:
charles
Message:

(trunk libT) possible fix for #2030

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/fdlimit.c

    r8343 r8347  
    224224    if( fd >= 0 )
    225225    {
     226        /* Set hints about the lookahead buffer and caching. It's okay
     227           for these to fail silently, so don't let them affect errno */
     228        const int err = errno;
    226229#ifdef HAVE_POSIX_FADVISE
    227230        posix_fadvise( fd, 0, 0, POSIX_FADV_SEQUENTIAL );
     
    231234        fcntl( fd, F_RDAHEAD, 1 );
    232235#endif
     236        errno = err;
    233237    }
    234238
Note: See TracChangeset for help on using the changeset viewer.