diff options
| author | Christian Brauner <christian@brauner.io> | 2019-06-04 15:18:43 +0200 |
|---|---|---|
| committer | Bruno Martins <bgcngm@gmail.com> | 2022-10-28 15:57:23 +0100 |
| commit | f4c358582254bffd827449d7ba45b90142844179 (patch) | |
| tree | 9440084eceee753fdf4920a39f9f596476eefa25 /kernel | |
| parent | 5500316dc8d87d8786c1389ddb2cbbeca24a4b07 (diff) | |
UPSTREAM: signal: improve comments
Improve the comments for pidfd_send_signal().
First, the comment still referred to a file descriptor for a process as a
"task file descriptor" which stems from way back at the beginning of the
discussion. Replace this with "pidfd" for consistency.
Second, the wording for the explanation of the arguments to the syscall
was a bit inconsistent, e.g. some used the past tense some used present
tense. Make the wording more consistent.
Signed-off-by: Christian Brauner <christian@brauner.io>
(cherry picked from commit c732327f04a3818f35fa97d07b1d64d31b691d78)
Bug: 135608568
Test: test program using syscall(__NR_sys_pidfd_open,..) and poll()
Change-Id: I06c6bdd1dddaeb8ac75a78dd21f9cdd0dc139a4c
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/signal.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/kernel/signal.c b/kernel/signal.c index 437778f62bfb..63f3aafdd0af 100644 --- a/kernel/signal.c +++ b/kernel/signal.c @@ -2992,12 +2992,11 @@ static int copy_siginfo_from_user_any(siginfo_t *kinfo, siginfo_t __user *info) } /** - * sys_pidfd_send_signal - send a signal to a process through a task file - * descriptor - * @pidfd: the file descriptor of the process - * @sig: signal to be sent - * @info: the signal info - * @flags: future flags to be passed + * sys_pidfd_send_signal - Signal a process through a pidfd + * @pidfd: file descriptor of the process + * @sig: signal to send + * @info: signal info + * @flags: future flags * * The syscall currently only signals via PIDTYPE_PID which covers * kill(<positive-pid>, <signal>. It does not signal threads or process |
