summaryrefslogtreecommitdiff
path: root/src/bin/efl
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@yahoo.com>2017-05-27 20:44:50 +0300
committerDaniel Zaoui <daniel.zaoui@yahoo.com>2017-06-05 08:55:37 +0300
commitd6146b077896421a02efbc79624d8ed9deb5ae3c (patch)
tree4b4e82055576d636708a8129d89418d309f2b4cf /src/bin/efl
parente947be1b850121dc83079ccc486761872b62b0c4 (diff)
Fix daemon issues
Diffstat (limited to 'src/bin/efl')
-rw-r--r--src/bin/efl/efl_debugd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/efl/efl_debugd.c b/src/bin/efl/efl_debugd.c
index 77a7a2e47d..f5881b85ef 100644
--- a/src/bin/efl/efl_debugd.c
+++ b/src/bin/efl/efl_debugd.c
@@ -360,6 +360,7 @@ _data_receive(Client *c, unsigned char *buffer)
360 360
361 rret = recv(c->fd, &size, sizeof(int), MSG_PEEK); 361 rret = recv(c->fd, &size, sizeof(int), MSG_PEEK);
362 362
363 if (rret == -1 || !size) goto error;
363 if (rret == sizeof(int)) 364 if (rret == sizeof(int))
364 { 365 {
365 unsigned int cur_packet_size = 0; 366 unsigned int cur_packet_size = 0;
@@ -549,7 +550,7 @@ static int
549_listening_tcp_socket_create() 550_listening_tcp_socket_create()
550{ 551{
551 struct sockaddr_in server; 552 struct sockaddr_in server;
552 int curstate = 0; 553 int curstate = 1;
553 // create the socket 554 // create the socket
554 int fd = socket(AF_INET, SOCK_STREAM, 0); 555 int fd = socket(AF_INET, SOCK_STREAM, 0);
555 if (fd < 0) goto err; 556 if (fd < 0) goto err;