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

Commit 8718a51a authored by Jesse Wilson's avatar Jesse Wilson
Browse files

Close System.out and System.err streams when they are made unreachable.

Change-Id: I295a9b2e5eb2d4e94b042f3a51e2f39b58a47d49
http://b/3072844
parent cd9afc37
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -264,7 +264,9 @@ public class RuntimeInit {
        // TODO: Doing this here works, but it seems kind of arbitrary. Find
        // a better place. The goal is to set it up for applications, but not
        // tools like am.
        System.out.close();
        System.setOut(new AndroidPrintStream(Log.INFO, "System.out"));
        System.err.close();
        System.setErr(new AndroidPrintStream(Log.WARN, "System.err"));

        commonInit();