diff options
| author | Kaushik BV <kaushikbv@gluster.com> | 2011-03-30 06:03:05 +0000 |
|---|---|---|
| committer | gluster-ant <bugzilla-bot@gluster.org> | 2011-03-30 06:03:05 +0000 |
| commit | c984f13e2bf2dbde2bdc74a350e81ea61814380f (patch) | |
| tree | 554f167dbb7c9a360b340dc41235be94f5590e3c /cli/src | |
| parent | 55b29cc1801fd89c2a95ca10c66b275d8aa0ab9f (diff) | |
mgmt/Glusterd: add pid extension to the pid file of the gsyncd
Signed-off-by: Kaushik BV <kaushikbv@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 2538 (pidfile naming)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2538
Diffstat (limited to 'cli/src')
| -rw-r--r-- | cli/src/cli-rpc-ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c index bb67af40c9..503611a879 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 { |
