Ignore:
Timestamp:
Sep 8, 2009, 6:25:40 AM (12 years ago)
Author:
charles
Message:

add better logging to track down tr_ioRead() error messages reported by Rabbitbunny

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/fdlimit.c

    r8960 r9066  
    353353    /* this doubles the OS level readahead buffer, which in practice
    354354     * turns out to be a good thing, because many (most?) clients request
    355      * chunks of blocks in order */
    356     posix_fadvise( file->fd, 0, 0, POSIX_FADV_SEQUENTIAL );
     355     * chunks of blocks in order.
     356     * It's okay for this to fail silently, so don't let it affect errno */
     357    {
     358        const int err = errno;
     359        posix_fadvise( file->fd, 0, 0, POSIX_FADV_SEQUENTIAL );
     360        errno = err;
     361    }
    357362#endif
    358363
Note: See TracChangeset for help on using the changeset viewer.