Ignore:
Timestamp:
Nov 12, 2007, 3:22:20 PM (15 years ago)
Author:
charles
Message:

backport fixes for #458

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.9x/libtransmission/fdlimit.c

    r3694 r3811  
    3434#include <unistd.h>
    3535#include <libgen.h> /* basename, dirname */
    36 #include <fcntl.h>
     36#include <fcntl.h> /* O_LARGEFILE */
    3737
    3838#include <sys/queue.h> /* libevent needs this */
     
    9090enum
    9191{
    92     TR_MAX_SOCKETS = 1024,
     92    TR_MAX_SOCKETS = 512,
    9393
    9494    TR_MAX_OPEN_FILES = 16, /* real files, not sockets */
     
    143143    /* open the file */
    144144    flags = write ? (O_RDWR | O_CREAT) : O_RDONLY;
     145#ifdef O_LARGEFILE
     146    flags |= O_LARGEFILE;
     147#endif
    145148#ifdef WIN32
    146149    flags |= O_BINARY;
     
    298301        if( o->fd == file ) {
    299302            dbgmsg( "releasing file '%s' in slot #%d", o->filename, i );
    300             fsync( o->fd );
     303            /* fsync( o->fd ); */
    301304            o->isCheckedOut = 0;
    302305            break;
Note: See TracChangeset for help on using the changeset viewer.