Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S270272AbTHCEPS (ORCPT ); Sun, 3 Aug 2003 00:15:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S270322AbTHCEPS (ORCPT ); Sun, 3 Aug 2003 00:15:18 -0400 Received: from adsl-206-170-148-147.dsl.snfc21.pacbell.net ([206.170.148.147]:43018 "EHLO gw.goop.org") by vger.kernel.org with ESMTP id S270272AbTHCEPQ (ORCPT ); Sun, 3 Aug 2003 00:15:16 -0400 Subject: Re: [PATCH] bug in setpgid()? process groups and thread groups From: Jeremy Fitzhardinge To: Roland McGrath Cc: Ulrich Drepper , Linux Kernel List , Andrew Morton In-Reply-To: <200308021908.h72J82x10422@magilla.sf.frob.com> References: <200308021908.h72J82x10422@magilla.sf.frob.com> Content-Type: text/plain Message-Id: <1059884113.20511.7.camel@ixodes.goop.org> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.3 Date: 02 Aug 2003 21:15:13 -0700 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 935 Lines: 20 On Sat, 2003-08-02 at 12:08, Roland McGrath wrote: > In the case of pgrp, you can > ignore SIGTTIN/SIGTTOU and progress to some degree at user level. In the > case of uids/gids, you can change every thread individually.) In my case I'm getting read() returning EIO when it tries to read from the terminal, because the thread pgid doesn't equal the terminal foreground pgid. I could solve this problem if either setpgid sets the pgid in all threads in the thread group, or if I could run setpgid in all threads for myself (I would prefer the latter just because it is a bit more flexible). The current situation is just annoyingly broken because there's no user-space way to fix it. 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/