Skip to contentSkip to conversation

disable : Ctrl -C in the Kernel

DISCUSSION Prabhu Chawandi 3 participants 4 messages Sep 10, 2009

lore
Share & tools
lore
#0 lore raw

Hi,

I am running Some application at the end of rcS script file.

I need to disable Ctrl-c, i.e. application should not kill after Ctrl-c.

and in some case I want Ctrl-C to work normally.

I am taking care in application about catching signal using signal(), even then I think there is something from kernel side.

Can any one help ?????/

Thanks in advance
Prabhu

#1 lore raw
Quoted 10 lines · Prabhu Chawandi

I am running Some application at the end of rcS script file.

I need to disable Ctrl-c, i.e. application should not kill after Ctrl-c.

and in some case I want Ctrl-C to work normally.

I am taking care in application about catching signal using signal(), even then I think there is something from kernel side.

Can any one help ?????/

We are using the following command here in an rc script early at boot to disable Ctrl-C:

stty intr ^@ quit ^@ susp ^@

c'ya
sven

Signature · 1 line
The lights are fading out, once more...
#2 lore raw

Thansk,

Do u know which is enabling it.

Coz, after adding the line told by u, I am not able to disable, means somewhere after this place its being enabled.

Quoted 24 lines · Sven-Haegar Koch
Quoted 10 lines · Prabhu Chawandi

  I am running Some application at the end of rcS script file.

I need to disable Ctrl-c, i.e.  application should not kill after Ctrl-c.

and in some case I want Ctrl-C to work normally.

I am taking care in application about catching signal using signal(), even then I think there is something from kernel side.

Can any one help ?????/

We are using the following command here in an rc script early at boot to disable Ctrl-C:

       stty intr ^@ quit ^@ susp ^@

c'ya
sven

--
The lights are fading out, once more...

#3 lore raw
Quoted 8 lines · Prabhu Chawandi

Thansk,

Do u know which is enabling it.

Coz, after adding the line told by u, I am not able to disable, means somewhere after this place its being enabled.

Firstly, this really isn't a kernel problem; this is the wrong list for this kind of question.

Secondly, there are typically hundreds of processes started at boot time, you'll need to check them to find out which is changing the terminal settings. I would suggest hooking up strace to init somehow and tracing all the ioctl()s to /dev/tty or /dev/console.

Matt