Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Nov 2003 07:29:38 +1100
From:      Tim Robbins <tjr@freebsd.org>
To:        David Xu <davidxu@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/usr.bin/su su.c
Message-ID:  <20031104202938.GA74548@wombat.robbins.dropbear.id.au>
In-Reply-To: <200311032354.hA3Nsuvi015437@repoman.freebsd.org>
References:  <200311032354.hA3Nsuvi015437@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Nov 03, 2003 at 03:54:55PM -0800, David Xu wrote:
> davidxu     2003/11/03 15:54:55 PST
> 
>   FreeBSD src repository
> 
>   Modified files:
>     usr.bin/su           su.c 
>   Log:
>   It seems when su executes in a shell scripts, there is a timing race,
>   sometimes, su will receive a SIGTTOU when parent su tries to set child
>   su's process group as foreground group, and su will be stopped unexpectly,
>   ignoring SIGTTOU fixes the problem.
>   
>   Noticed by: fjoe

Thank you! This fixes the problems I've been having for ~18 months with
suspending su when using pdksh.
(http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/54263)


Tim



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031104202938.GA74548>