Date: Wed, 29 May 2002 00:18:17 -0400 From: Alexander Kabaev <ak03@gte.com> To: Dag-Erling Smorgrav <des@ofug.org> Cc: Jos Backus <jos@catnook.com>, Bruce Evans <bde@zeta.org.au>, 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> In-Reply-To: <xzpg00b6336.fsf@flood.ping.uio.no> References: <20020528224503.GE11876@lizzy.catnook.com> <20020529105048.W23368-100000@gamplex.bde.org> <20020529030006.GB22504@lizzy.catnook.com> <20020529032604.GA12450@kanpc.gte.com> <xzpg00b6336.fsf@flood.ping.uio.no>
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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): <Starting point: user is running zsh> [user]% sudo -s <root runs zsh> [root]# [root]# [root]# su - <root runs ksh93> # # <press ^D here, all seems to be OK, lets try again > [root]# su - # zsh: suspended (tty output) su - <this time shell gets immediately suspended for some reason> [root]# fg [1] + continued su - # # # # # <press ^D> [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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020529041817.GA12755>