Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

intr doesn't work

Status
Not open for further replies.

ogniemi

Technical User
Nov 7, 2003
1,041
PL
# su - user1
$ stty -a
speed 9600 baud; 58 rows; 125 columns;
eucw 1:1:0:0, scrw 1:1:0:0:
intr = ^C; quit = ^\; erase = ^H; kill = ^U; eof = ^D; eol = <undef>
eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; dsusp = ^Y; reprint = ^R
discard = ^O; werase = ^W; lnext = ^V
-parenb -parodd cs8 -cstopb -hupcl cread -clocal -parext
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -iuclc
ixon -ixany -ixoff -imaxbel
isig icanon -xcase echo -echoe -echok -echonl -noflsh
-tostop -echoctl -echoprt -echoke -flusho -pending -iexten
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel tab3
$ stty -g
3:1c:8:15:4:ff:ff:11:13:1a:19:12:f:17:16:0:302:c05:d00bd:b:
$ exit
# stty -g
3:1c:8:15:4:ff:ff:11:13:1a:19:12:f:17:16:0:302:c05:d00bd:b:


Can anyone tell me why intr (^C) doesn't work when I swith to user1? In root shell it works.
Both stty settings are the same for root and user1.

r, m.
 
ok, solved.

it was trap issue from /etc/profile

after trap "" 1 2 3


there was no:

trap 1 2 3
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top