Path: utzoo!utgpu!attcan!uunet!husc6!think!ames!pacbell!att!chinet!les From: les@chinet.chi.il.us (Leslie Mikesell) Newsgroups: comp.sys.att Subject: Re: Info-3b2 Digest, Number 26 Message-ID: <6818@chinet.chi.il.us> Date: 21 Oct 88 04:18:17 GMT References: <10678@netsys.COM> <340@mccc.UUCP> Reply-To: les@chinet.chi.il.us (Leslie Mikesell) Organization: Chinet - Public Access Unix Lines: 18 In article <340@mccc.UUCP> pjh@mccc.UUCP (Pete Holsberg) writes: > >I've run into the problem that rn won't work over a STARlan network >also. I can invoke it and it shows the first screen, but then it >freezes. Anyone have a clue or a fix? Vnews and readnews don't seem to >have this problems. I ran across this problem with GNU emacs also. Starlan on the 3B2 is a STREAMS device and if a non-blocking read is done by setting O_NDELAY if no data is present the read will return -1 where a tty device will return 0 (this is true even when the pseudo-tty emulator is pushed on the stream by the login mechanism). Check for places that take the value returned from read() as the number of characters read. The quick fix is to adjust any negative number to 0. The right thing to do would be to check errno on a negative return and do something appropriate. Les Mikesell