From owner-freebsd-current Tue May 28 20:16:59 2002 Delivered-To: freebsd-current@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id CEE3737B408; Tue, 28 May 2002 20:16:54 -0700 (PDT) Received: (from dan@localhost) by dan.emsphone.com (8.12.2/8.12.3) id g4T3GpG9094213; Tue, 28 May 2002 22:16:51 -0500 (CDT) (envelope-from dan) Date: Tue, 28 May 2002 22:16:51 -0500 From: Dan Nelson To: Jos Backus Cc: Bruce Evans , freebsd-current@FreeBSD.ORG, des@FreeBSD.ORG Subject: Re: zsh exits upon ^C after su'ing to root with zsh as its shell Message-ID: <20020529031651.GA9334@dan.emsphone.com> References: <20020528224503.GE11876@lizzy.catnook.com> <20020529105048.W23368-100000@gamplex.bde.org> <20020529030006.GB22504@lizzy.catnook.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020529030006.GB22504@lizzy.catnook.com> User-Agent: Mutt/1.3.99i X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error 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 In the last episode (May 28), Jos Backus said: > On Wed, May 29, 2002 at 10:55:54AM +1000, Bruce Evans wrote: > > Here is some old mail about this. Sorry I slowed down Alexander's > > fixes. > > Thanks Bruce. It sounds like we'll have to live with this problem for > now? If you're not concerned about accounting (or whatever deleting a credential ends up doing), you can use this hack. My machine's still running. Index: su.c =================================================================== RCS file: /home/ncvs/src/usr.bin/su/su.c,v retrieving revision 1.49 diff -b -u -p -r1.49 su.c --- su.c 6 Mar 2002 12:46:56 -0000 1.49 +++ su.c 29 Mar 2002 19:01:47 -0000 @@ -309,7 +309,7 @@ main(int argc, char *argv[]) */ statusp = 1; - child_pid = fork(); + child_pid = 0; switch (child_pid) { default: while ((ret_pid = waitpid(child_pid, &statusp, WUNTRACED)) != -1) { -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message