projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
168f313
)
[Title]add checking port
author
munkyu.im
<munkyu.im@samsung.com>
Thu, 15 Mar 2012 05:22:05 +0000
(14:22 +0900)
committer
munkyu.im
<munkyu.im@samsung.com>
Thu, 15 Mar 2012 05:22:05 +0000
(14:22 +0900)
[Type]
[Module]
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]
tizen/src/process.c
patch
|
blob
|
history
diff --git
a/tizen/src/process.c
b/tizen/src/process.c
index
70a88a9
..
fa0bf7b
100644
(file)
--- 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);