projects
/
platform
/
core
/
system
/
swap-manager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79ffd6b
)
[FIX] daemon fail on host disconnection while instrumentation
40/21440/1
author
Vitaliy Cherepanov
<v.cherepanov@samsung.com>
Tue, 20 May 2014 17:00:46 +0000
(21:00 +0400)
committer
Vitaliy Cherepanov
<v.cherepanov@samsung.com>
Tue, 20 May 2014 17:00:46 +0000
(21:00 +0400)
splice fails to disconnected socket
Change-Id: Ie8a44a52c81253c80708e1a639c2cdc0a723eb31
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
daemon/daemon.c
patch
|
blob
|
history
diff --git
a/daemon/daemon.c
b/daemon/daemon.c
index
99b23bd
..
2cbb424
100644
(file)
--- a/
daemon/daemon.c
+++ b/
daemon/daemon.c
@@
-748,6
+748,7
@@
static Eina_Bool host_ctrl_cb(void *data, Ecore_Fd_Handler *fd_handler)
//close connect_timeoutt and host socket and quit
LOGI("Connection closed. Termination. (%d)\n",
manager.host.control_socket);
+ manager.host.data_socket = -1; //splice will fail without that
ecore_main_loop_quit();
} else if (result < 0) {
LOGE("Control socket handler.\n");