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

[Nbd] [PATCH 4/5] nbd-server: remove commented code



Signed-off-by: Tuomas Jorma Juhani Räsänen <tuomasjjrasanen@...1261...>
---
 nbd-server.c |   10 ----------
 1 file changed, 10 deletions(-)

diff --git a/nbd-server.c b/nbd-server.c
index be65ebb..2ba55f5 100644
--- a/nbd-server.c
+++ b/nbd-server.c
@@ -2352,8 +2352,6 @@ int dosockopts(const int socket, GError **const gerror) {
 #endif /* sun */
 	struct linger l;
 
-	//int sock_flags;
-
 	/* lose the pesky "Address already in use" error message */
 	if (setsockopt(socket,SOL_SOCKET,SO_REUSEADDR,&yes,sizeof(int)) == -1) {
                 g_set_error(gerror, SETUP_ERROR, SETUP_ERROR_SO_REUSEADDR,
@@ -2376,14 +2374,6 @@ int dosockopts(const int socket, GError **const gerror) {
                 return -1;
 	}
 
-	/* make the listening socket non-blocking */
-	/*if ((sock_flags = fcntl(socket, F_GETFL, 0)) == -1) {
-		err("fcntl F_GETFL");
-	}
-	if (fcntl(socket, F_SETFL, sock_flags | O_NONBLOCK) == -1) {
-		err("fcntl F_SETFL O_NONBLOCK");
-	}*/
-
         return 0;
 }
 
-- 
1.7.10.4




Reply to: