Call getpid() directly instead of using an internal API.

Change-Id: Icf318df22694addccf4bbb888416899caddb5047
Merge "Call getpid() directly instead of using an internal API."