From b904e38abff4c6d24c8c87074b41fe47c6e7920d Mon Sep 17 00:00:00 2001 From: "munkyu.im" Date: Wed, 14 Mar 2012 19:04:21 +0900 Subject: [PATCH] [Title]change saving pid to port [Type] [Module] [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] --- tizen/src/process.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tizen/src/process.c b/tizen/src/process.c index 8445185..b75fedd 100644 --- a/tizen/src/process.c +++ b/tizen/src/process.c @@ -44,7 +44,7 @@ MULTI_DEBUG_CHANNEL(tizen, process); static char pidfname[512] = { 0, }; static char tizen_vms_path[512] = {0, }; - +extern int tizen_base_port; #ifdef _WIN32 static char *mbstok_r (char *string, const char *delim, char **save_ptr) { @@ -154,7 +154,7 @@ int write_pidfile(char *path) else strcpy(tizen_vms_path, g_path_get_dirname(path)); - sprintf(pidfname, "%s/.pid", tizen_vms_path); + sprintf(pidfname, "%s/.port", tizen_vms_path); if (access(tizen_vms_path, R_OK) != 0) { make_pid_path(pidfname); @@ -171,7 +171,7 @@ int write_pidfile(char *path) ftruncate(fd, 0); memset(buf, 0, sizeof(buf)); - sprintf(buf, "%d", (int)getpid()); + sprintf(buf, "%d", tizen_base_port); write(fd, buf, strlen(buf)); close(fd); -- 2.7.4