projects
/
platform
/
core
/
appfw
/
rpc-port.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e75df5
)
Check debug socket existence
79/264479/1
author
Hwankyu Jhun
<h.jhun@samsung.com>
Thu, 23 Sep 2021 02:54:12 +0000
(11:54 +0900)
committer
Hwankyu Jhun
<h.jhun@samsung.com>
Thu, 23 Sep 2021 02:54:12 +0000
(11:54 +0900)
If the socket path is not existed, rpc-port library doesn't try to connect to
the debug-socket.
Change-Id: Ia2c99e0c888e37764d31736d031d370cf288ea8c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/debug-port-internal.cc
patch
|
blob
|
history
diff --git
a/src/debug-port-internal.cc
b/src/debug-port-internal.cc
index
8e182fe
..
ddfd930
100644
(file)
--- a/
src/debug-port-internal.cc
+++ b/
src/debug-port-internal.cc
@@
-131,6
+131,9
@@
void DebugPort::Init() {
}
int DebugPort::Connect() {
+ if (access(PATH_RPC_PORT_UTIL_SOCK, F_OK) != 0)
+ return -1;
+
int fd = socket(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0);
if (fd < 0) {
_E("socket() is failed. errno(%d)", errno);