From: munkyu.im Date: Thu, 15 Mar 2012 05:22:05 +0000 (+0900) Subject: [Title]add checking port X-Git-Tag: TizenStudio_2.0_p2.3~1700 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=838c90f2677d07a3f3c78b36bfec7034a21966e3;p=sdk%2Femulator%2Fqemu.git [Title]add checking port [Type] [Module] [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] --- diff --git a/tizen/src/process.c b/tizen/src/process.c index 70a88a9..fa0bf7b 100644 --- a/tizen/src/process.c +++ b/tizen/src/process.c @@ -150,6 +150,9 @@ int write_portfile(char *path) { int fd = -1; char buf[128] = ""; + + if(tizen_base_port = 0) + return 0; if(!g_path_is_absolute(path)) strcpy(tizen_vms_path, g_get_current_dir()); @@ -170,7 +173,7 @@ int write_portfile(char *path) ERR("%s at %s(%d)\n", strerror(errno), __FILE__, __LINE__); return -1; } - + ftruncate(fd, 0); memset(buf, 0, sizeof(buf)); sprintf(buf, "%d", tizen_base_port);