lkml.org 
[lkml]   [2003]   [Sep]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] use group_leader->pgrp (was Re: setpgid and threads)
Jeremy Fitzhardinge <jeremy@goop.org> wrote:
>
> On Wed, 2003-08-20 at 19:49, Andrew Morton wrote:
> > Using current->thread_group->foo sounds like a reasonable solution
>
> Here's a patch to use group_leader->pgrp rather than just ->pgrp so that
> all threads in a group appear to have the same process group ID.

Just a quick maintainance thing:


> - if (is_orphaned_pgrp(current->pgrp))
> + if (is_orphaned_pgrp(current->group_leader->pgrp))

Would it make sense to do this via

if (is_orphaned_pgrp(process_group(current)))

and to then rename task_struct.pgrp to something else, to pick up any
missed conversions?

-
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.888 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site