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