Operating System - HP-UX
1833159 Members
3322 Online
110051 Solutions
New Discussion

Re: ctrl-C does not work (stty seems OK!)

 
SOLVED
Go to solution
Derko Drukker
Occasional Advisor

ctrl-C does not work (stty seems OK!)

Dear Listeners,

I have 2 HP9000/D220 systems running hpux 11.00
stty -a output (identical on both systems):
speed 9600 baud; line = 0;
rows = 24; columns = 80
min = 0; time = 0;
intr = ^C; quit = ^\; erase = ^H; kill = ^U
eof = ^D; eol = ^@; eol2 = ^@; swtch = ^@
stop = ^S; start = ^Q; susp = ^Z; dsusp = ^@
werase = ^@; lnext = ^@
parenb -parodd cs8 -cstopb hupcl cread -clocal -loblk -crts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -iuclc
ixon -ixany ixoff -imaxbel -rtsxoff -ctsxon -ienqak
isig icanon -iexten -xcase echo echoe echok -echonl -noflsh
echoctl -echoprt echoke -flusho -pendin
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel -tostop

ctrl-C works on system A, but not on system B
Is behaviour of ctrl-C defined anywhere else ?

Derko
4 REPLIES 4
Peter Godron
Honored Contributor
Solution

Re: ctrl-C does not work (stty seems OK!)

Derko,
1. is the def for intr Cntrl-C not ^C
2. have you any trap set
3. is the isig the same on both system
4. are you using ssh?
Regards
Derko Drukker
Occasional Advisor

Re: ctrl-C does not work (stty seems OK!)

Yes,

It turned out a trap was set for INT.

It works OK now on both systems !

Derko
Donald O'Brien
Advisor

Re: ctrl-C does not work (stty seems OK!)

How can you tell if this trap is set? I'm seeing this same problem now between two machines. The traps seem to be identical in both /etc/profile and ~/.profile repective on each system.

Thank you.
Bill Hassell
Honored Contributor

Re: ctrl-C does not work (stty seems OK!)

Just type the command: trap

All traps that have been set in the current environment will be listed, something like this:

$ trap "echo bye bye;exit" 1 2 3 15

$ trap
trap -- 'echo bye bye;exit' TERM
trap -- 'echo bye bye;exit' QUIT
trap -- 'echo bye bye;exit' INT
trap -- 'echo bye bye;exit' HUP


Bill Hassell, sysadmin