Merge "Fix return type of nativePidFdOpen" into rvc-dev am: e0c2025f64 am: 0d5f9b04f4 am: 5eed79514c
Change-Id: I10dc357bc292d6ae6ba4cb517688b8fc3bf4829e
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);
|
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);
|
||||||
|
|||||||
Reference in New Issue
Block a user