Blame SOURCES/0078-iscsid-Fix-double-close-of-mgmt-ipc-fd.patch

d94dff
From 134f8dcbcdd76bf2418c64de1b4e3dca6163773d Mon Sep 17 00:00:00 2001
d94dff
From: Duane Northcutt <jduanen@yahoo.com>
d94dff
Date: Wed, 14 May 2014 11:23:23 -0700
d94dff
Subject: [PATCH] iscsid: Fix double close of mgmt ipc fd
d94dff
d94dff
Ran into a problem where iscsiadm was closing an already closed fd
d94dff
(returning EBADF. Seems like the close() in line 466 is redundant as
d94dff
it is done in mgmt_ipc_destroy_queue_task(). Could also assign
d94dff
qtask->mgmt_ipc_fd to NULL, but it seems better to do it this way.
d94dff
---
d94dff
 usr/mgmt_ipc.c | 1 -
d94dff
 1 file changed, 1 deletion(-)
d94dff
d94dff
diff --git a/usr/mgmt_ipc.c b/usr/mgmt_ipc.c
d94dff
index a82c063..ee037d9 100644
d94dff
--- a/usr/mgmt_ipc.c
d94dff
+++ b/usr/mgmt_ipc.c
d94dff
@@ -463,7 +463,6 @@ mgmt_ipc_write_rsp(queue_task_t *qtask, int err)
d94dff
 	qtask->rsp.err = err;
d94dff
 	if (write(qtask->mgmt_ipc_fd, &qtask->rsp, sizeof(qtask->rsp)) < 0)
d94dff
 		log_error("IPC qtask write failed: %s", strerror(errno));
d94dff
-	close(qtask->mgmt_ipc_fd);
d94dff
 	mgmt_ipc_destroy_queue_task(qtask);
d94dff
 }
d94dff
 
d94dff
-- 
d94dff
1.9.3
d94dff