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

Commit abd78b00 authored by Josh Gao's avatar Josh Gao Committed by android-build-merger
Browse files

Merge "adb: detect closed jdwp socket." am: e1c4e04f

am: 7e5b10b1

Change-Id: Idc8db41aab19b5895b28642b77821f1fa4610218
parents e6f38b4e 7e5b10b1
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -232,11 +232,7 @@ static void jdwp_process_event(int socket, unsigned events, void* _proc) {
            size_t size = PID_LEN - proc->in_len;

            ssize_t rc = TEMP_FAILURE_RETRY(recv(socket, p, size, 0));
            if (rc < 0) {
                if (errno == EAGAIN) {
                    return;
                }

            if (rc <= 0) {
                D("failed to read jdwp pid: %s", strerror(errno));
                goto CloseProcess;
            }