Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Jul 2002 14:54:00 +1000 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Bakul Shah <bakul@bitblocks.com>
Cc:        current@FreeBSD.ORG, <ache@FreeBSD.ORG>
Subject:   Re: suspend bug
Message-ID:  <20020721145145.R19118-100000@gamplex.bde.org>
In-Reply-To: <20020721141841.H18880-100000@gamplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 21 Jul 2002, Bruce Evans wrote:

> On Thu, 18 Jul 2002, Bakul Shah wrote:
>
> > Try this:
> >
> > $ csh
> > % su
> > Password:
> > % stop $$
> >
> > Suspended (signal)
> > %fg
> >
> > At which point you will lose you login shell.
> >
> > Prior to KSE one could switch between an su'ed shell and a
> > normal shell at will by using stop $$ and fg.
>
> Some more details:
> - this happens for csh but not for bash-1.
> - ktracing everything shows further strange behaviour.  ktrace causes a
>   kernel printf "Out of ktrace request objects.".  The login shell is
>   not lost immediately.  You get a shell prompt, but at least tty echo is
>   broken, and hitting return a few times causes all the shells to exit.
>
> > Is this breakage considered a bug or a feature?
>
> Bug.

The bug is actually in su.  It happens with a pre-KSEIII kernel.  Backing
out rev.1.54 of su.c (which was apparently supposed to fix a related bug
tcsh's fg command) fixes it.

Bruce


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?20020721145145.R19118-100000>