From: Mark Hatle <fray@mvista.com>
To: Dan Malek <dan@mvista.com>
Cc: Navin Boppuri <navin.boppuri@newisys.com>,
"Linuxppc-Embedded (E-mail)"
<linuxppc-embedded@lists.linuxppc.org>
Subject: Re: Ctrl-C does not work
Date: Thu, 06 Sep 2001 13:11:56 -0500 [thread overview]
Message-ID: <3B97BC6C.D669726B@mvista.com> (raw)
In-Reply-To: 3B97B8B9.115B1569@mvista.com
Dan Malek wrote:
>
> Mark Hatle wrote:
>
> > ..... There is a problem with the
> > way the serial consoles are started on CDK 1.0 and 1.2, it was left up
> > to the serial driver to turn on or off the control-c activation.
>
> It actually has to do with the way tty process groups are created and
> signals are managed. If you boot _any_ Linux kernel using something
> like 'init=/bin/sh', ctl-C doesn't work because the process in slot 1
> (normally init) is treated with special signal handling by the kernel.
Correct. I should have been clearer before.
> > .... login has a patch that ensures that the
> > control-c stuff is enabled.
>
> Huh? All you need to do is properly start up an interactive
> session from init to get process group signal handling. This is
> just standard Linux userland stuff documented in a variety of places.
Depends on the device, the problem that was solved was /dev/console may
not be /dev/ttyS0. It can be a number of things, which can change from
the kernel boot parameters. So /dev/console has to be used in a generic
interface. The patch specifically enables TIOCSCTTY on the device, this
ensures that /dev/console will in fact work as a TTY (including ctrl-c
support). The exception to this if if you set /dev/console to be
something other then a serial device, then TIOCSCTTY will fail, and
control-c will still probably not work. :)
So the _ACTUAL_ problem is that /dev/console does not have TIOCSCTTY
enabled by default, where as _MOST_ serial drivers do have it enabled by
default. (Again we found a couple a while back that did not work
properly, but I don't think they were on PPC...)
So the problem in HHL Cross Dev Kit 1.0 and 1.2 was the way that the
shell was being invoked from the init program, and the device that was
being used. This is no longer an issue w/ HHL 2.0, unless you do
init=/bin/sh, but that is a different problem! <grin>
--Mark
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
prev parent reply other threads:[~2001-09-06 18:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-05 20:57 Ctrl-C does not work Navin Boppuri
2001-09-05 21:53 ` Cal Erickson
2001-09-06 15:37 ` Mark Hatle
2001-09-06 17:56 ` Dan Malek
2001-09-06 18:11 ` Mark Hatle [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3B97BC6C.D669726B@mvista.com \
--to=fray@mvista.com \
--cc=dan@mvista.com \
--cc=linuxppc-embedded@lists.linuxppc.org \
--cc=navin.boppuri@newisys.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).