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

Commit 25d2defb authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix return type of nativePidFdOpen" into rvc-dev am: e0c2025f am:...

Merge "Fix return type of nativePidFdOpen" into rvc-dev am: e0c2025f am: 0d5f9b04 am: b6f5a21a

Change-Id: I8dfc6009cf77c19d961aa8d8ccad578b7b885c44
parents 3b30a517 b6f5a21a
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1330,7 +1330,7 @@ static inline int sys_pidfd_open(pid_t pid, unsigned int flags) {
    return syscall(__NR_pidfd_open, pid, flags);
    return syscall(__NR_pidfd_open, pid, flags);
}
}


static jboolean android_os_Process_nativePidFdOpen(JNIEnv* env, jobject, jint pid, jint flags) {
static jint android_os_Process_nativePidFdOpen(JNIEnv* env, jobject, jint pid, jint flags) {
    int fd = sys_pidfd_open(pid, flags);
    int fd = sys_pidfd_open(pid, flags);
    if (fd < 0) {
    if (fd < 0) {
        throwErrnoException(env, "nativePidFdOpen", errno);
        throwErrnoException(env, "nativePidFdOpen", errno);