Path: utzoo!mnetor!uunet!husc6!hao!oddjob!gargoyle!ihnp4!homxb!homxc!ldm
From: ldm@homxc.UUCP (the wharf rat)
Newsgroups: comp.unix.questions
Subject: stty 0
Message-ID: <2412@homxc.UUCP>
Date: 8 Dec 87 23:21:11 GMT
Organization: Viola Lee's Blues
Lines: 18
Keywords: bye


	I work on a switching system that doesn't drop the line when I log 
off.  (HUPCL doesn't seem to do a thing...).  So I wrote a short one to
stty 0 :


	struct termio options ; 
	fprintf(stderr,"Bye-Bye !\n");
	ioctl(0,TCGETA,&options);
	options.c_cflag &= ~CBAUD;
	options.c_cflag |= B0&CBAUD;
	ioctl(0,TCSETAW,&options);	

and trap 0 "bye" in .profile.  Right ? Wrong.  I still (sometimes!) get
another login: .  Of course, stty 0 from the shell works every time...

What's going on ?
                                                         lou marco