|
|
74b1de |
From b2040d8404e0ac44742cb903e3c8da2c832b2925 Mon Sep 17 00:00:00 2001
|
|
|
74b1de |
From: Mohammed Rafi KC <rkavunga@redhat.com>
|
|
|
74b1de |
Date: Thu, 11 Jul 2019 12:45:11 +0530
|
|
|
74b1de |
Subject: [PATCH 235/255] Revert "glusterd/svc: Stop stale process using the
|
|
|
74b1de |
glusterd_proc_stop"
|
|
|
74b1de |
|
|
|
74b1de |
This reverts commit fe9159ee42f0f67b01e6a495df8105ea0f66738d.
|
|
|
74b1de |
|
|
|
74b1de |
BUG: 1471742
|
|
|
74b1de |
Change-Id: Id5ac0d21319724141ad9bcb9b66435803ebe5f47
|
|
|
74b1de |
Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com>
|
|
|
74b1de |
Reviewed-on: https://code.engineering.redhat.com/gerrit/175944
|
|
|
74b1de |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
74b1de |
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
|
|
|
74b1de |
---
|
|
|
74b1de |
xlators/mgmt/glusterd/src/glusterd-svc-helper.c | 6 +++---
|
|
|
74b1de |
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
74b1de |
|
|
|
74b1de |
diff --git a/xlators/mgmt/glusterd/src/glusterd-svc-helper.c b/xlators/mgmt/glusterd/src/glusterd-svc-helper.c
|
|
|
74b1de |
index a6e662f..6a3ca52 100644
|
|
|
74b1de |
--- a/xlators/mgmt/glusterd/src/glusterd-svc-helper.c
|
|
|
74b1de |
+++ b/xlators/mgmt/glusterd/src/glusterd-svc-helper.c
|
|
|
74b1de |
@@ -488,9 +488,9 @@ glusterd_shd_svc_mux_init(glusterd_volinfo_t *volinfo, glusterd_svc_t *svc)
|
|
|
74b1de |
|
|
|
74b1de |
if (!mux_proc) {
|
|
|
74b1de |
if (pid != -1 && sys_access(svc->proc.pidfile, R_OK) == 0) {
|
|
|
74b1de |
- /* stale pid file, stop and unlink it */
|
|
|
74b1de |
- glusterd_proc_stop(&svc->proc, SIGTERM, PROC_STOP_FORCE);
|
|
|
74b1de |
- glusterd_unlink_file(svc->proc.pidfile);
|
|
|
74b1de |
+ /* stale pid file, unlink it. */
|
|
|
74b1de |
+ kill(pid, SIGTERM);
|
|
|
74b1de |
+ sys_unlink(svc->proc.pidfile);
|
|
|
74b1de |
}
|
|
|
74b1de |
mux_proc = __gf_find_compatible_svc(GD_NODE_SHD);
|
|
|
74b1de |
}
|
|
|
74b1de |
--
|
|
|
74b1de |
1.8.3.1
|
|
|
74b1de |
|