lkml.org 
[lkml]   [2003]   [Sep]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] use group_leader->pgrp (was Re: setpgid and threads)
From
Date
On Mon, 2003-09-08 at 21:17, Andrew Morton wrote:
> All other instances of foo->pgrp have been converted to process_group(foo),
> which is foo->group_leader->__pgrp.
>
> Should setpgrp() in a thread affect the group leader? It does...

Eh? sys_setpgid() fails with EINVAL if another thread tries to change
the process group. Oh, I see. setpgrp() is a wrapper which passes
pid=0 to setpgid; sys_setpgid uses current->pid rather than
current->tgid, so it always uses the thread group leader's ID. Looks OK
to me.

J

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:48    [W:0.037 / U:0.812 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site