Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 112445b8 authored by JP Abgrall's avatar JP Abgrall
Browse files

adb: Don't allow a forced exit if data is still in the socket


Fixes the  http://b/4271011

 "adb shell cat /init.rc output gets truncated"


Change-Id: I6df64374b60789595fb18f96d429315dec032443
Signed-off-by: default avatarJP Abgrall <jpa@google.com>
parent f098c159
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -360,8 +360,8 @@ static void local_socket_event_func(int fd, unsigned ev, void *_s)
                fdevent_del(&s->fde, FDE_READ);
            }
        }

        if(s->fde.force_eof || is_eof) {
        /* Don't allow a forced eof if data is still there */
        if((s->fde.force_eof && !r) || is_eof) {
            s->close(s);
        }
    }