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

Commit eccbc7c9 authored by Neil Fuller's avatar Neil Fuller Committed by Gerrit Code Review
Browse files

Merge "Fix NativeCrashListener"

parents 1ecfdf33 e64f3e3f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -123,11 +123,10 @@ final class NativeCrashListener extends Thread {
            Os.listen(serverFd, 1);

            while (true) {
                InetSocketAddress peer = new InetSocketAddress();
                FileDescriptor peerFd = null;
                try {
                    if (MORE_DEBUG) Slog.v(TAG, "Waiting for debuggerd connection");
                    peerFd = Os.accept(serverFd, peer);
                    peerFd = Os.accept(serverFd, null /* peerAddress */);
                    if (MORE_DEBUG) Slog.v(TAG, "Got debuggerd socket " + peerFd);
                    if (peerFd != null) {
                        // Only the superuser is allowed to talk to us over this socket