Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: nyu notesfiles V1.1 4/1/84; site rna.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!talcott!harvard!seismo!cmcl2!rna!dan From: dan@rna.UUCP Newsgroups: net.bugs.usg Subject: Re: fcntl can cause grief to your parent Message-ID: <3700001@rna.UUCP> Date: Thu, 14-Feb-85 14:32:00 EST Article-I.D.: rna.3700001 Posted: Thu Feb 14 14:32:00 1985 Date-Received: Thu, 28-Feb-85 12:39:21 EST References: <8@istbt.UUCP> Lines: 19 Nf-ID: #R:istbt:-800:rna:3700001:000:655 Nf-From: rna!dan Feb 25 14:32:00 1985 x This fcntl() problem is analogous to a set of other problems like programs leaving bad stty()'s, accidentally or on purpose, e.g. a program that changes line speed, or the EOF character to 'a'. I once hacked up the shell to always restore the stty modes after a program finishes. It recognized the "stty" command as a special case to allow deliberate changes. This feature was quite useful however it doesn't protect you from background processes and stty commands in shell scripts wouldn't work. Cheers, Dan Ts'o Dept. Neurobiology Rockefeller Univ. 1230 York Ave. NY, NY 10021 212-570-7671 ...cmcl2!rna!dan