Loading core/java/com/android/internal/os/WrapperInit.java +3 −2 Original line number Diff line number Diff line Loading @@ -69,15 +69,16 @@ public class WrapperInit { // Tell the Zygote what our actual PID is (since it only knows about the // wrapper that it directly forked). if (fdNum != 0) { try { FileDescriptor fd = new FileDescriptor(); try { fd.setInt$(fdNum); DataOutputStream os = new DataOutputStream(new FileOutputStream(fd)); os.writeInt(Process.myPid()); os.close(); IoUtils.closeQuietly(fd); } catch (IOException ex) { Slog.d(TAG, "Could not write pid of wrapped process to Zygote pipe.", ex); } finally { IoUtils.closeQuietly(fd); } } Loading Loading
core/java/com/android/internal/os/WrapperInit.java +3 −2 Original line number Diff line number Diff line Loading @@ -69,15 +69,16 @@ public class WrapperInit { // Tell the Zygote what our actual PID is (since it only knows about the // wrapper that it directly forked). if (fdNum != 0) { try { FileDescriptor fd = new FileDescriptor(); try { fd.setInt$(fdNum); DataOutputStream os = new DataOutputStream(new FileOutputStream(fd)); os.writeInt(Process.myPid()); os.close(); IoUtils.closeQuietly(fd); } catch (IOException ex) { Slog.d(TAG, "Could not write pid of wrapped process to Zygote pipe.", ex); } finally { IoUtils.closeQuietly(fd); } } Loading