From owner-freebsd-current Tue May 28 21:18:33 2002 Delivered-To: freebsd-current@freebsd.org Received: from h132-197-179-27.gte.com (h132-197-179-27.gte.com [132.197.179.27]) by hub.freebsd.org (Postfix) with ESMTP id F1E3237B406 for ; Tue, 28 May 2002 21:18:28 -0700 (PDT) Received: from kanpc.gte.com (localhost [IPv6:::1]) by h132-197-179-27.gte.com (8.12.3/8.12.3) with ESMTP id g4T4IIfS012922; Wed, 29 May 2002 00:18:19 -0400 (EDT) (envelope-from ak03@kanpc.gte.com) Received: (from ak03@localhost) by kanpc.gte.com (8.12.3/8.12.3/Submit) id g4T4IHrL012921; Wed, 29 May 2002 00:18:17 -0400 (EDT) Date: Wed, 29 May 2002 00:18:17 -0400 From: Alexander Kabaev To: Dag-Erling Smorgrav Cc: Jos Backus , Bruce Evans , freebsd-current@FreeBSD.ORG Subject: Re: zsh exits upon ^C after su'ing to root with zsh as its shell Message-ID: <20020529041817.GA12755@kanpc.gte.com> References: <20020528224503.GE11876@lizzy.catnook.com> <20020529105048.W23368-100000@gamplex.bde.org> <20020529030006.GB22504@lizzy.catnook.com> <20020529032604.GA12450@kanpc.gte.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.99i 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 > > Revision 1.51 of su.c fixes the bug. > No it doesn't. This is an obvious step and of course I tried to do the same first. This is what I was getting then and what I am getting now with your patch applied (my comments are in angle brackets): [user]% sudo -s [root]# [root]# [root]# su - # # [root]# su - # zsh: suspended (tty output) su - [root]# fg [1] + continued su - # # # # # [root]# [root]# ^D [user]% I was able to reproduce this behaviour only when sudo was used initially to run user shell with root privileges. I've also seen similar weirdness happen when screen is used too. This is why I had to disable signal handling in su - somehow that does not conflict so much with other programs. -- Alexander Kabaev To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message