[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] waitpid: Support ARM.
From: |
Danny Milosavljevic |
Subject: |
Re: [PATCH] waitpid: Support ARM. |
Date: |
Wed, 3 Jun 2020 00:57:30 +0200 |
On Tue, 2 Jun 2020 00:23:12 +0200
Danny Milosavljevic <dannym@scratchpost.org> wrote:
> diff --git a/lib/linux/waitpid.c b/lib/linux/waitpid.c
> index 49d9c188..693e3dfa 100644
> --- a/lib/linux/waitpid.c
> +++ b/lib/linux/waitpid.c
> @@ -27,7 +27,7 @@ waitpid (pid_t pid, int *status_ptr, int options)
> {
> #if __i386__
> return _sys_call3 (SYS_waitpid, (long) pid, (long) status_ptr, (int)
> options);
> -#elif __x86_64__
> +#elif __x86_64__ || __arm__
> return _sys_call4 (SYS_wait4, (long) pid, (long) status_ptr, (int)
> options, 0);
> #else
Verified that this is correct by reading ARM syscall table:
https://github.com/torvalds/linux/blob/v4.19/arch/arm/tools/syscall.tbl
# 7 was sys_waitpid
114 common wait4 sys_wait4
Pushed to mes master as commit a944400112aa87e37f54b8ab90ae7f5783dc8291.
pgpLIv0p6JjEw.pgp
Description: OpenPGP digital signature