Instead of using -1 for pid and uid in the simulator, and then having

to special-case the simulator case all over the framework, just use
getuid and getpid, and intercept those in the simulator wrapper.
This commit is contained in:
Marco Nelissen
2009-07-17 07:59:17 -07:00
parent 3720cf2de9
commit e1babd45e1

View File

@@ -366,13 +366,8 @@ void IPCThreadState::restoreCallingIdentity(int64_t token)
void IPCThreadState::clearCaller()
{
if (mProcess->supportsProcesses()) {
mCallingPid = getpid();
mCallingUid = getuid();
} else {
mCallingPid = -1;
mCallingUid = -1;
}
mCallingPid = getpid();
mCallingUid = getuid();
}
void IPCThreadState::flushCommands()