diff options
Diffstat (limited to 'usr/iscsid_req.c')
-rw-r--r-- | usr/iscsid_req.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/iscsid_req.c b/usr/iscsid_req.c index 427e894..d872eb7 100644 --- a/usr/iscsid_req.c +++ b/usr/iscsid_req.c @@ -97,6 +97,8 @@ static int ipc_connect(int *fd, char *unix_sock_name, int start_iscsid) if (nsec <= MAXSLEEP/2) sleep(nsec); } + close(*fd); + *fd = -1; log_error("can not connect to iSCSI daemon (%d)!", errno); return ISCSI_ERR_ISCSID_NOTCONN; } |