From f8c798350a5efa537418d1453f3e547574e68b55 Mon Sep 17 00:00:00 2001 From: Kaushik BV Date: Wed, 30 Mar 2011 06:03:05 +0000 Subject: mgmt/Glusterd: add pid extension to the pid file of the gsyncd Signed-off-by: Kaushik BV Signed-off-by: Vijay Bellur BUG: 2538 (pidfile naming) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2538 --- cli/src/cli-rpc-ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli') diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c index bb67af40c..503611a87 100644 --- a/cli/src/cli-rpc-ops.c +++ b/cli/src/cli-rpc-ops.c @@ -2635,7 +2635,7 @@ gf_cli3_1_gsync_get_pid_file (char *pidfolder, char *pidfile, char *master, char ptr = fgets(buff, sizeof(buff), in); if (ptr) { buff[strlen(buff)-1]='\0'; //strip off \n - snprintf (buffer, PATH_MAX, "%s/%s", pidfolder, buff); + snprintf (buffer, PATH_MAX, "%s/%s.pid", pidfolder, buff); strncpy (pidfile, buffer, PATH_MAX); } else { -- cgit