linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Dan Malek <dan@embeddededge.com>
To: Alex Zeffertt <ajz@cambridgebroadband.com>
Cc: markc@mail.com,
	"linuxppc-embedded@lists.linuxppc.org"
	<linuxppc-embedded@lists.linuxppc.org>
Subject: Re: Control-C in bash ???
Date: Tue, 14 Jan 2003 09:51:55 -0500	[thread overview]
Message-ID: <3E24240B.4000404@embeddededge.com> (raw)
In-Reply-To: 1042551106.8605.109.camel@zambia


Alex Zeffertt wrote:


> I had exactly the same problem with ash (busybox version), but I found
> it went away when I replaced
>
> ttyS0::respawn:-/bin/sh
>
> in /etc/inittab with
>
> ttyS0::respawn:/sbin/login
>
> I have no idea why....

If all of you would look back into the mailing list archives you would
notice this discussion before.  The reason ctl-C won't work is you need
a "controlling tty" device.

The program that is started as process ID 1 is a special program (expected
to be '/sbin/init') and can't be used as a 'controlling tty'.  Signals to
this process are managed differently in the kernel.  Any program you start
in this process ID slot, which is you favorite shell or busybox or whatever,
can't assign a controlling tty and get the ctl-C signals.  It doesn't matter
how it is built or what ioctls you try to send to the driver.

If you start up init, or run /bin/login or any of a variety of things you
can do to actually configure a controlling tty and spawn a shell will
obivously work as expected.  Starting up a shell as 'init=/bin/sh', or some
other program in the 'init' PID 1 slot is considered a recovery method and
will lose some of its tty functions.  Even for a shell not in the PID 1 slot,
you have to do something along the path to configure a driver as a "controlling
tty", using /bin/login or the methods Wolfgang described in past messages.

Thanks.


	-- Dan


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

  parent reply	other threads:[~2003-01-14 14:51 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-13 19:09 Control-C in bash ??? Mark Chambers
2003-01-13 19:20 ` Der Herr Hofrat
2003-01-13 19:30 ` Wolfgang Denk
2003-01-14 13:44   ` Mark Chambers
2003-01-13 19:48 ` Chris Wedgwood
2003-01-14 13:31 ` Alex Zeffertt
2003-01-14 14:50   ` Wolfgang Denk
2003-01-14 14:51   ` Dan Malek [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-01-13 19:16 Kerl, John
2003-01-13 19:39 ` Mark Chambers
2003-01-13 19:25 Kerl, John
2003-01-13 19:59 Kerl, John

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=3E24240B.4000404@embeddededge.com \
    --to=dan@embeddededge.com \
    --cc=ajz@cambridgebroadband.com \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    --cc=markc@mail.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).