[PATCH 1/6] cfg: When send_shutdown fails, clear shutdown_con

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

 



When (for example) CS_ERR_TRY_AGAIN is returned, shutdown_con was still
set resulting in following situation:
- It was not possible to call shutdown again
- Shutdown didn't proceed

Signed-off-by: Jan Friesse <jfriesse@xxxxxxxxxx>
---
 services/cfg.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/services/cfg.c b/services/cfg.c
index 24f19f2..56198e2 100644
--- a/services/cfg.c
+++ b/services/cfg.c
@@ -971,6 +971,7 @@ static void message_handler_req_lib_cfg_tryshutdown (
 		result = send_shutdown();
 		if (result == -1) {
 			error = CS_ERR_TRY_AGAIN;
+			shutdown_con = NULL;
 		}
 
 		res_lib_cfg_tryshutdown.header.size = sizeof(struct res_lib_cfg_tryshutdown);
-- 
1.7.1

_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss


[Index of Archives]     [Linux Clusters]     [Corosync Project]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [X.Org]

  Powered by Linux