summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-utils.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
index cbafb81ec4b..27493a53928 100644
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
@@ -861,12 +861,13 @@ glusterd_volume_stop_glusterfs (glusterd_volinfo_t *volinfo,
ret = unlink (pidfile);
- if (ret) {
+ if (ret && (ENOENT != errno)) {
gf_log ("", GF_LOG_ERROR, "Unable to unlink pidfile: %s",
pidfile);
goto out;
}
+ ret = 0;
out:
if (file)
fclose (file);