Bug 15755 - ctrl-C does not work in runlevel s
Summary: ctrl-C does not work in runlevel s
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: sh-utils
Version: 7.0
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bernhard Rosenkraenzer
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-08-08 19:08 UTC by Rene Uittenbogaard
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2001-02-19 14:58:05 UTC
Embargoed:


Attachments (Terms of Use)

Description Rene Uittenbogaard 2000-08-08 19:08:04 UTC
When the system is brought down to single-user mode, the only working
virtual console does not allow any command to be ended by control-C. The
following settings have been set:

speed 38400 baud; rows 25; columns 80; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon
-ixoff
-iuclc -ixany -imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0
ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
echoctl echoke

Comment 1 Jeff Johnson 2001-01-06 19:37:06 UTC
This appears to be a problem with shell startup after switching to single user
mode.

How are you getting to single user mode? What's needed is to set ^C in the
profile
used by the shell that's run when you end up in single user mode.

Comment 2 Rene Uittenbogaard 2001-01-08 12:22:50 UTC
Adding the line "stty intr ^C" in /root/.bashrc does not help.
However, a long time ago the following customisation has been made to
/etc/inittab:

ss:S:once:/sbin/sulogin

removing / commenting out this line solves the problem.  However, as a security
measure, I don't want to remove it. Also, in /etc/rc.sysinit, sulogin is used,
which means ctrl-C cannot be used in an emergency shell. Is it possible to
consider this bugreport as a bug in sulogin?


Comment 3 Rene Uittenbogaard 2001-02-19 14:55:23 UTC
The problem is still present in RH7.0 with the same customisation. Will you have
a look at this problem again please?


Comment 4 Bernhard Rosenkraenzer 2001-03-06 15:17:17 UTC
I can't reproduce this with the current version (from rawhide).



Note You need to log in before you can comment on or make changes to this bug.