Broken su in current - trying to fix myself, help needed!

Andrey Chernov ache at nagual.pp.ru
Wed Oct 17 11:41:08 PDT 2007


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/


More information about the freebsd-current mailing list