Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!necntc!adelie!minya!jc From: jc@minya.UUCP (jc) Newsgroups: comp.unix.wizards Subject: Bourne shell logout on ^C? Message-ID: <207@minya.UUCP> Date: Sat, 26-Sep-87 00:49:32 EDT Article-I.D.: minya.207 Posted: Sat Sep 26 00:49:32 1987 Date-Received: Sun, 27-Sep-87 09:24:47 EDT Organization: home Lines: 59 Hi folks. Here's my "Can you explain this?" puzzle of the day. This one comes from a reasonably generic SysV.2 machine., for what good that'll do ya. I have two terminals here. What they are don't really matter, since the computer can't see the brand names; it can only see the incoming bytes. The funny behaviour is as follows: When I type a ^C (CTRL-C) on terminal A, I get a new shell prompt. When I type a ^C on terminal B, I get a login prompt. As far as I can tell, both terminals are set up the same. They both are logged in with the same id, and the same .profile has been run for both of them. The only difference I know is that I have to type "TERM=vt100" for terminal B, because it's not done correctly by the inittab entry for the line. [But this probably isn't relevant, since the logout happens if ^C is the first thing I type after login.] You are probably asking "What does `stty -a` say about the terminals?" Here's the answer: speed 9600 baud; line = 0; intr = ^c; quit = ^x; erase = ^h; kill = ^z; eof = ^d; eol = ^`; swtch = ^` -parenb -parodd cs8 -cstopb hupcl cread -clocal -loblk -ignbrk brkint ignpar -parmrk -inpck istrip -inlcr -igncr icrnl -iuclc ixon ixany -ixoff isig icanon -xcase echo echoe echok -echonl -noflsh opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel I've gone over this on both terminals, and I can't see any difference at all. This isn't surprising, since they both derived from logins with the same id, the same home directory, and the same .profiles. So why does the shell log me off on the one and not the other? Any ideas where else I should look for differences? If it's any help, there is another curious thing on terminal B. When I type "tail -f foo", the tail behaves as usual, showing me the file as it grows. However, when I type ^C, it doesn't exit. I've yet to find a way to kill a "tail -f" from terminal B. From terminal A it works just fine. I've run a hex-dump program from terminal B, and it verifies that ^C comes in as hex 03, so it's not a transmission error. One more thing. I've examined the kernel-build stuff, and there seems to be only one terminal driver in the system; it's the same routine for both terminals. Hmmm.... -- John Chambers <{adelie,ima,maynard}!minya!{jc,root}> (617/484-6393)