Date: Wed, 17 Oct 2007 22:41:05 +0400 From: Andrey Chernov <ache@nagual.pp.ru> To: Artem Kuchin <matrix@itlegion.ru> Cc: freebsd-current@FreeBSD.ORG Subject: Re: Broken su in current - trying to fix myself, help needed! Message-ID: <20071017184105.GA76805@nagual.pp.ru> In-Reply-To: <00bd01c810ec$10371230$0c00a8c0@Artem> References: <00bd01c810ec$10371230$0c00a8c0@Artem>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Oct 17, 2007 at 10:32:16PM +0400, Artem Kuchin wrote: > There are such like in the default: dection of switch > > child_pgrp = getpgid(child_pid); > if (tcgetpgrp(STDERR_FILENO) == child_pgrp) > tcsetpgrp(STDERR_FILENO, getpgrp()); > > > The problem is here. > getpgid(child_pid) simply fails with errno 3 (process doesn't exist) The question is: why getpgid() fails while process really exists (in stopped state)? -- http://ache.pp.ru/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071017184105.GA76805>