Android Q Preview 1 (QPP1.190205.018.B4)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCXIl47QAKCRDorT+BmrEO
eJYHAJ4pfr9i1/mjq0HVPkqORwZHRuVB+gCghWPMnRgaf2rPESD085rVssDuNKE=
=pxr5
-----END PGP SIGNATURE-----
Process: allow closed target fd.

The comment suggest that the fstat() check is to simplify the logic to
dup2, this patch switch to use base::ShuffleFileDescriptors() to handle
that logic so that we can allow closed fd.

Bug: 121177337
Test: unit tests
Change-Id: I9fdb0cd00fb371ebcd90a3d6e91a353159ab8413
2 files changed