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

Commit 910c4f25 authored by Steven Moreland's avatar Steven Moreland Committed by Martijn Coenen
Browse files

doc getCallingPid zero return

Bug: 297833427
Test: N/A
Change-Id: I8bd480d7deb74062f3aaf61f30b1335443f82653
parent dff1d0ff
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -309,7 +309,11 @@ public class Binder implements IBinder {
     * If the current thread is not currently executing an incoming transaction,
     * then its own PID is returned.
     *
     * Warning: oneway transactions do not receive PID.
     * Warning: oneway transactions do not receive PID. Even if you expect
     * a transaction to be synchronous, a misbehaving client could send it
     * as a asynchronous call and result in a 0 PID here. Additionally, if
     * there is a race and the calling process dies, the PID may still be
     * 0 for a synchronous call.
     */
    @CriticalNative
    public static final native int getCallingPid();