Merge "Fix return type of nativePidFdOpen" into rvc-dev am: e0c2025f64
Change-Id: Ia4aaa9abcbf25495ae978955656bf696b3bfaff6
This commit is contained in:
@@ -1330,7 +1330,7 @@ static inline int sys_pidfd_open(pid_t pid, unsigned int 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);
|
||||
if (fd < 0) {
|
||||
throwErrnoException(env, "nativePidFdOpen", errno);
|
||||
|
||||
Reference in New Issue
Block a user