From 44057a75ef001bfd1919e2169ec3f7f355d14c20 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 16 Apr 2009 23:04:35 +0000 Subject: Hey, the list code is better, also, I fixed some stuff in socket (the isBlocking function was backward), and fastcgi is actually working now! Also added comparison functions to FString. --- src/socket.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/socket.cpp') diff --git a/src/socket.cpp b/src/socket.cpp index a660b30..c01c63a 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -369,7 +369,7 @@ bool Bu::Socket::isSeekable() bool Bu::Socket::isBlocking() { #ifndef WIN32 - return ((fcntl( nSocket, F_GETFL, 0 ) & O_NONBLOCK) == O_NONBLOCK); + return ((fcntl( nSocket, F_GETFL, 0 ) & O_NONBLOCK) != O_NONBLOCK); #else return false; #endif @@ -380,7 +380,7 @@ void Bu::Socket::setBlocking( bool bBlocking ) #ifndef WIN32 if( bBlocking ) { - fcntl( nSocket, F_SETFL, fcntl( nSocket, F_GETFL, 0 ) & ~O_NONBLOCK ); + fcntl( nSocket, F_SETFL, fcntl( nSocket, F_GETFL, 0 ) & (~O_NONBLOCK) ); } else { -- cgit v1.2.3