Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!bbn!diamond.bbn.com!mlandau From: mlandau@bbn.com (Matt Landau) Newsgroups: comp.windows.x Subject: Re: Problem with X11 and EOF (on a Sun 3/160) Message-ID: <10380@slate.BBN.COM> Date: Fri, 6-Nov-87 13:21:08 EST Article-I.D.: slate.10380 Posted: Fri Nov 6 13:21:08 1987 Date-Received: Sun, 8-Nov-87 16:13:18 EST References: <311@osupyr.UUCP> Reply-To: mlandau@bbn.com (Matt Landau) Organization: BBN Laboratories Incorporated, Cambridge, MA Lines: 14 Summary: xinit leaves O_NDELAY set on console In comp.windows.x (<311@osupyr.UUCP>), alden@osupyr.UUCP (Dave Alden) writes: >Whenever I exit X, the sun acts as if I'm holding down Control-D. First >it logs me out, then the getty gets the control-D and after printing the >login message 4 times, it fails and goes to sleep. I had the same problem in both xinit and xtools (a locally modified xinit that reads a suntools-like startup file). The problem seems to be that xinit is setting O_NDELAY on the console device, and leaving it in this state when it exits. I eliminated the problem by making sure that xinit clears the O_NDELAY flag (from stderr, which is a hack, but a hack that works) just before it exits. -- Matt Landau Waiting for a flash of enlightenment mlandau@bbn.com in all this blood and thunder