Re: [PATCH] use group_leader->pgrp (was Re: setpgid and threads)

From: Andrew Morton
Date: Mon Sep 08 2003 - 21:11:49 EST


Jeremy Fitzhardinge <jeremy@xxxxxxxx> 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/