It is because the parcel needs to own the fd so it can ensure it is valid for as long as it needs it. On May 7, 2011 10:38 AM, "Nitin Mahajan" <[email protected]> wrote: > Hello, > > I just wanted to know that, inside Parcel::writeNativeHandle() , why > is the file descriptor duplicated? > > Is it the only way a descriptor can be shared between two processes? > > regards > -Nitin > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

