Tech Support > Operating Systems > Linux / Variants > How do I get the CTRL-C functionality?
How do I get the CTRL-C functionality?
Posted by Smallbrother on September 19th, 2003


Hi all,

I've created a 'small' linux recovery system. Therefore I used
Yard (http://www.linuxlots.com/~fawcett/yard/index.html).
All is working fine, but one little thing disturbs me.

After the kernel gives the control to the /etc/rc script, written
for bash(2), it ignores any signal I send (e.g. CTRL-C). I've
tried to catch them with the trap command, but that hasn't worked
at all.

Any hints where I have to look at?

Thanks.

Posted by Jeroen Geilman on September 19th, 2003


Smallbrother wrote:

The RC scripts are not started from a console, they're started by init.
/etc/inittab defines what scripts gets run to start the system, usually in
/etc/rc*.d/
Do a serious #man bash and see how you can force it to start up
interactively, then add that command to the RC script's bash invocation.

Just a quick hack - may not work, no guarantees... but you'll know where to
start looking!


--
Jeroen Geilman

Gentoo 1.4 rc4

Posted by Smallbrother on September 22nd, 2003


Jeroen Geilman schrieb:

I know.

I think I tried sometime to start an interactive bash instance out
of the rc script, but I will try again.

Thanks at all




Similar Posts