From 3d3f5250cea38d9d3038d3236e25ebf96fd55763 Mon Sep 17 00:00:00 2001 From: Yan Burman Date: Tue, 11 Feb 2014 08:55:49 +0000 Subject: [PATCH] iscsi-scstd: No need to cal set_non_blocking() twice on the same fd during accept. set_non_blocking() is being called in alloc_and_init_conn(), so no need to call it again later Signed-off-by: Yan Burman git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/iser@5279 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- iscsi-scst/usr/iscsi_scstd.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/iscsi-scst/usr/iscsi_scstd.c b/iscsi-scst/usr/iscsi_scstd.c index b3bd7d238..2b27dbe21 100644 --- a/iscsi-scst/usr/iscsi_scstd.c +++ b/iscsi-scst/usr/iscsi_scstd.c @@ -442,8 +442,6 @@ static void accept_connection(int listen) conn->is_discovery = tcp_is_discovery; conn_read_pdu(conn); - set_non_blocking(fd); - incoming_cnt++; out: