From owner-cvs-all@FreeBSD.ORG Tue Nov 4 12:28:35 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E2C0D16A4CE; Tue, 4 Nov 2003 12:28:35 -0800 (PST) Received: from smtp02.syd.iprimus.net.au (smtp02.syd.iprimus.net.au [210.50.76.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 411D943F75; Tue, 4 Nov 2003 12:28:35 -0800 (PST) (envelope-from tim@robbins.dropbear.id.au) Received: from robbins.dropbear.id.au (203.134.135.93) by smtp02.syd.iprimus.net.au (7.0.020) id 3F8F522A005FE157; Wed, 5 Nov 2003 07:28:34 +1100 Received: by robbins.dropbear.id.au (Postfix, from userid 1000) id 571EA611E; Wed, 5 Nov 2003 07:29:38 +1100 (EST) Date: Wed, 5 Nov 2003 07:29:38 +1100 From: Tim Robbins To: David Xu Message-ID: <20031104202938.GA74548@wombat.robbins.dropbear.id.au> References: <200311032354.hA3Nsuvi015437@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200311032354.hA3Nsuvi015437@repoman.freebsd.org> User-Agent: Mutt/1.4.1i cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/su su.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Nov 2003 20:28:36 -0000 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