Android O MR1 IOT Release 1.0.10 (5360514)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCXImVQwAKCRDorT+BmrEO
eFzKAJ9AfaDLaH3qGLPtm4kNh1RuWMNiIgCfcYhxbSd+6/hCkna/CCWxNAfwJEE=
=mb9h
-----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