Ignore:
Timestamp:
Jun 21, 2010, 1:08:04 PM (11 years ago)
Author:
charles
Message:

call fcntl(F_NOCACHE,1) right before closing a local datafile. Does it have any effect? Who knows.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/fdlimit.c

    r10676 r10811  
    306306    posix_fadvise( fd, 0, 0, POSIX_FADV_DONTNEED );
    307307    errno = err;
     308#endif
     309#ifdef SYS_DARWIN
     310    /* it's unclear to me from the man pages if this actually flushes out the cache,
     311     * but it couldn't hurt... */
     312    fcntl( fd, F_NOCACHE, 1 );
    308313#endif
    309314    close( fd );
Note: See TracChangeset for help on using the changeset viewer.