[tracker/tracker-store-ipc] Turned off nonblocking



commit a1be7eb3d5ee42348f1beb430014a2b03ca7083d
Author: Philip Van Hoof <philip codeminded be>
Date:   Fri May 29 10:03:33 2009 +0200

    Turned off nonblocking
---
 src/tracker-store/tracker-socket-listener.c |   17 -----------------
 1 files changed, 0 insertions(+), 17 deletions(-)

diff --git a/src/tracker-store/tracker-socket-listener.c b/src/tracker-store/tracker-socket-listener.c
index 19aee26..a580573 100644
--- a/src/tracker-store/tracker-socket-listener.c
+++ b/src/tracker-store/tracker-socket-listener.c
@@ -136,21 +136,6 @@ static gboolean server_cb(GIOChannel *chan, GIOCondition cond, gpointer data)
 	return TRUE;
 }
 
-static int 
-set_nonblocking(int fd)
-{
-	long arg;
-	arg = fcntl(fd, F_GETFL);
-	if (arg < 0)
-		return -errno;
-	if (arg & O_NONBLOCK)
-		return 0;
-	arg |= O_NONBLOCK;
-	if (fcntl(fd, F_SETFL, arg) < 0)
-		return -errno;
-	return 0;
-}
-
 void
 tracker_socket_listener_init (void)
 {
@@ -178,8 +163,6 @@ tracker_socket_listener_init (void)
 		close(sockfd);
 	} else {
 
-		set_nonblocking (sockfd);
-
 		listen (sockfd, 1);
 
 		io = g_io_channel_unix_new (sockfd);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]