Changeset 3105 for trunk/libtransmission/fdlimit.c
- Timestamp:
- Sep 20, 2007, 4:32:01 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/fdlimit.c
r2596 r3105 64 64 typedef struct tr_fd_s 65 65 { 66 tr_lock _t* lock;67 tr_cond _t* cond;66 tr_lock * lock; 67 tr_cond * cond; 68 68 69 69 int reserved; … … 391 391 void tr_fdSocketClose( int s ) 392 392 { 393 tr_lockLock( gFd->lock ); 393 if( s >= 0 ) 394 { 395 tr_lockLock( gFd->lock ); 394 396 #ifdef BEOS_NETSERVER 395 closesocket( s );397 closesocket( s ); 396 398 #else 397 close( s );399 close( s ); 398 400 #endif 399 if( SocketGetPriority( s ) ) 400 gFd->reserved--; 401 else 402 gFd->normal--; 403 tr_lockUnlock( gFd->lock ); 401 if( SocketGetPriority( s ) ) 402 gFd->reserved--; 403 else 404 gFd->normal--; 405 tr_lockUnlock( gFd->lock ); 406 } 404 407 } 405 408
Note: See TracChangeset
for help on using the changeset viewer.