From: Richard Henderson <richard.henderson@linaro.org>
To: qemu-devel@nongnu.org
Cc: laurent@vivier.eu
Subject: [PATCH 3/4] linux-user: Implement PR_SET_PDEATHSIG
Date: Thu, 6 Jan 2022 14:57:37 -0800 [thread overview]
Message-ID: <20220106225738.103012-4-richard.henderson@linaro.org> (raw)
In-Reply-To: <20220106225738.103012-1-richard.henderson@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
linux-user/syscall.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 9eb2fb2bb2..8495f5e08e 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -6450,6 +6450,9 @@ static abi_long do_prctl(CPUArchState *env, abi_long option, abi_long arg2,
}
return ret;
}
+ case PR_SET_PDEATHSIG:
+ return get_errno(prctl(PR_SET_PDEATHSIG, target_to_host_signal(arg2),
+ arg3, arg4, arg5));
case PR_GET_NAME:
{
void *name = lock_user(VERIFY_WRITE, arg2, 16, 1);
--
2.25.1
next prev parent reply other threads:[~2022-01-06 22:58 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-06 22:57 [PATCH 0/4] linux-user: prctl follow-ups Richard Henderson
2022-01-06 22:57 ` [PATCH 1/4] linux-user: Do not special-case NULL for PR_GET_PDEATHSIG Richard Henderson
2022-01-08 17:10 ` Laurent Vivier
2022-01-08 17:13 ` Laurent Vivier
2022-01-06 22:57 ` [PATCH 2/4] linux-user: Map signal number in PR_GET_PDEATHSIG Richard Henderson
2022-01-07 14:01 ` Philippe Mathieu-Daudé
2022-01-06 22:57 ` Richard Henderson [this message]
2022-01-08 17:15 ` [PATCH 3/4] linux-user: Implement PR_SET_PDEATHSIG Laurent Vivier
2022-01-06 22:57 ` [PATCH 4/4] linux-user: Implement capability prctls Richard Henderson
2022-01-08 17:17 ` Laurent Vivier
2022-01-08 18:06 ` [PATCH 0/4] linux-user: prctl follow-ups Laurent Vivier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220106225738.103012-4-richard.henderson@linaro.org \
--to=richard.henderson@linaro.org \
--cc=laurent@vivier.eu \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).