From: Dan Malek <dan@embeddededge.com>
To: David Boutcher <boutcher@us.ibm.com>
Cc: linuxppc-dev@lists.linuxppc.org
Subject: Re: why is tty->pgrp set to -1 for console?
Date: Thu, 31 Jan 2002 15:53:57 -0500 [thread overview]
Message-ID: <3C59AEE5.2070900@embeddededge.com> (raw)
In-Reply-To: OFA93F332E.5BEC00AC-ON86256B52.00699C5C-@86256B52.0069BC41LocalDomain
David Boutcher wrote:
> You need to be running something like mingetty on the console to have
> signals (like ctrl-c) picked up. If you start Linux with something like
> "init=/bin/bash" then job control signals (like control C and control Z)
> won't work.
One of the main reasons for this is the process in slot 1 (i.e. init)
has special signal handling in the kernel. There are a variety of ways
to get a shell with job control running on the console. Starting some
version of getty/mingetty as you mentioned is one, you can also fork a
shell and use stty to set signals, or anything to get a shell running
as process 2 or above.
-- Dan
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2002-01-31 20:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-31 19:14 why is tty->pgrp set to -1 for console? David Boutcher
2002-01-31 20:49 ` mod+linuxppc-dev
2002-01-31 20:53 ` Dan Malek [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-01-30 12:14 kernel hang when machine_restart called from isr gopi
2002-01-31 20:58 ` why is tty->pgrp set to -1 for console? gopi
2002-01-31 17:09 ` Daniel Jacobowitz
2002-01-31 21:34 ` Scott Anderson
2002-02-01 19:12 ` gopi
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=3C59AEE5.2070900@embeddededge.com \
--to=dan@embeddededge.com \
--cc=boutcher@us.ibm.com \
--cc=linuxppc-dev@lists.linuxppc.org \
/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).