|
|
190130 |
From d23859d5cbd5823b2587811aa57030436ce9e74c Mon Sep 17 00:00:00 2001
|
|
|
2072c5 |
From: Sanju Rakonde <srakonde@redhat.com>
|
|
|
2072c5 |
Date: Tue, 17 Dec 2019 15:52:30 +0530
|
|
|
190130 |
Subject: [PATCH 391/449] glusterd: unlink the file after killing the process
|
|
|
2072c5 |
|
|
|
2072c5 |
In glusterd_proc_stop(), after killing the pid
|
|
|
2072c5 |
we should remove the pidfile.
|
|
|
2072c5 |
|
|
|
190130 |
> upstream patch link: https://review.gluster.org/#/c/glusterfs/+/23890/
|
|
|
2072c5 |
> fixes: bz#1784375
|
|
|
2072c5 |
> Change-Id: Ib6367aed590932c884b0f6f892fc40542aa19686
|
|
|
2072c5 |
> Signed-off-by: Sanju Rakonde <srakonde@redhat.com>
|
|
|
2072c5 |
|
|
|
190130 |
BUG: 1784211
|
|
|
2072c5 |
Change-Id: Ib6367aed590932c884b0f6f892fc40542aa19686
|
|
|
2072c5 |
Signed-off-by: Sanju Rakonde <srakonde@redhat.com>
|
|
|
190130 |
Reviewed-on: https://code.engineering.redhat.com/gerrit/202257
|
|
|
2072c5 |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
2072c5 |
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
|
|
|
2072c5 |
---
|
|
|
2072c5 |
xlators/mgmt/glusterd/src/glusterd-proc-mgmt.c | 2 ++
|
|
|
2072c5 |
1 file changed, 2 insertions(+)
|
|
|
2072c5 |
|
|
|
2072c5 |
diff --git a/xlators/mgmt/glusterd/src/glusterd-proc-mgmt.c b/xlators/mgmt/glusterd/src/glusterd-proc-mgmt.c
|
|
|
2072c5 |
index f55a5fd..a05c90d 100644
|
|
|
2072c5 |
--- a/xlators/mgmt/glusterd/src/glusterd-proc-mgmt.c
|
|
|
2072c5 |
+++ b/xlators/mgmt/glusterd/src/glusterd-proc-mgmt.c
|
|
|
2072c5 |
@@ -107,6 +107,8 @@ glusterd_proc_stop(glusterd_proc_t *proc, int sig, int flags)
|
|
|
2072c5 |
"service, reason:%s",
|
|
|
2072c5 |
proc->name, strerror(errno));
|
|
|
2072c5 |
}
|
|
|
2072c5 |
+ } else {
|
|
|
2072c5 |
+ (void)glusterd_unlink_file(proc->pidfile);
|
|
|
2072c5 |
}
|
|
|
2072c5 |
if (flags != PROC_STOP_FORCE)
|
|
|
2072c5 |
goto out;
|
|
|
2072c5 |
--
|
|
|
2072c5 |
1.8.3.1
|
|
|
2072c5 |
|