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
(from parent 1:
9c11e67
)
Fix Disconnect() method of Port
92/263892/1
author
Hwankyu Jhun
<h.jhun@samsung.com>
Mon, 13 Sep 2021 07:14:05 +0000
(16:14 +0900)
committer
Hwankyu Jhun
<h.jhun@samsung.com>
Mon, 13 Sep 2021 07:14:05 +0000
(16:14 +0900)
Before closing the file descriptor, the method calls IgnoreIOEvent() to
release the GSource.
Change-Id: I8e7c91de98e1db838def468564ca98117d1985eb
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/port-internal.cc
patch
|
blob
|
history
diff --git
a/src/port-internal.cc
b/src/port-internal.cc
index
4cceada
..
582e6a5
100644
(file)
--- a/
src/port-internal.cc
+++ b/
src/port-internal.cc
@@
-80,6
+80,8
@@
Port::~Port() {
}
void Port::Disconnect() {
+ IgnoreIOEvent();
+
if (fd_ > 0) {
_W("Close fd(%d)", fd_);
close(fd_);