From owner-freebsd-current Tue Jun 25 16:53: 8 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx5.mail.ru (mx5.mail.ru [194.67.57.15]) by hub.freebsd.org (Postfix) with ESMTP id 2C26337B409 for ; Tue, 25 Jun 2002 16:52:59 -0700 (PDT) Received: from [141.154.54.200] (helo=kan.dnsalias.net) by mx5.mail.ru with esmtp (Exim SMTP.5) id 17N07F-0006Rb-00; Wed, 26 Jun 2002 03:52:57 +0400 Received: from kan.dnsalias.net (localhost [IPv6:::1]) by kan.dnsalias.net (8.12.4/8.12.4) with ESMTP id g5PNqnld091071; Tue, 25 Jun 2002 19:52:49 -0400 (EDT) (envelope-from kan@kan.dnsalias.net) Received: (from kan@localhost) by kan.dnsalias.net (8.12.4/8.12.4/Submit) id g5PNqhP6091070; Tue, 25 Jun 2002 19:52:43 -0400 (EDT) Date: Tue, 25 Jun 2002 19:52:43 -0400 From: Alexander Kabaev To: Matthew Dillon Cc: current@FreeBSD.ORG Subject: Re: su gets SIGHUP randomly on startup with latest current Message-Id: <20020625195243.6a655c8a.kabaev@bellatlantic.net> In-Reply-To: <200206252327.g5PNR05U051967@apollo.backplane.com> References: <20020625071455.GA42940@calvin.in.ibm.com> <20020625081225.GC21301@CPE0030ab0ef2bb.cpe.net.cable.rogers.com> <3D18CE39.CC63442E@mindspring.com> <200206252327.g5PNR05U051967@apollo.backplane.com> X-Mailer: Sylpheed version 0.7.5claws25 (GTK+ 1.2.10; i386-portbld-freebsd5.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Matt, the problem is not new. Dag-Erling committed su.c rev 1.51 to fix the problem with su taking signals instead of its children and his fix has this unfortunate side effect you are seeing. I proposed a different patch, which does not have unwanted side-effects and which I am using for at leat one year now. Please see current@freebsd.org archives for a thread "zsh exits upon ^C after su'ing to root with zsh as its shell". It took place somewhen at the end of the May. -- Alexander Kabaev P.S. As usual, my home email sucks, so there is a good chance that this mail will not be delivered :( To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message