Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d43b194b authored by Marco Nelissen's avatar Marco Nelissen
Browse files

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.
parent 007a4a26
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -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;
    }
}

void IPCThreadState::flushCommands()