[Devel] Re: [PATCH 1/9] sig: Fix mqueue pid
Pavel Emelyanov
xemul at openvz.org
Wed Dec 12 05:24:47 PST 2007
Eric W. Biederman wrote:
> Currently in the sig info for posix message queues we are reporting the
> task id and not the task group id. Given that this is a posix interface
> and that si_pid is defined by posix as returning the process id, we should
> be reporting the task group id.
>
> So fix this interface.
>
> Signed-off-by: Eric W. Biederman <ebiederm at xmission.com>
Acked-by: Pavel Emelyanov <xemul at openvz.org>
> ---
> ipc/mqueue.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/ipc/mqueue.c b/ipc/mqueue.c
> index 7d1b8aa..d3feadf 100644
> --- a/ipc/mqueue.c
> +++ b/ipc/mqueue.c
> @@ -510,7 +510,7 @@ static void __do_notify(struct mqueue_inode_info *info)
> sig_i.si_errno = 0;
> sig_i.si_code = SI_MESGQ;
> sig_i.si_value = info->notify.sigev_value;
> - sig_i.si_pid = task_pid_vnr(current);
> + sig_i.si_pid = task_tgid_vnr(current);
> sig_i.si_uid = current->uid;
>
> kill_pid_info(info->notify.sigev_signo,
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list