Path: utzoo!attcan!uunet!snorkelwacker!apple!bionet!arisia!roo!janssen From: janssen@parc.xerox.com (Bill Janssen) Newsgroups: comp.windows.x Subject: Re: What is the politically correct way... Message-ID: Date: 28 May 90 02:29:34 GMT References: <3833@jato.Jpl.Nasa.Gov> Sender: news@parc.xerox.com Organization: Xerox PARC, Palo Alto, CA Lines: 12 In-reply-to: kaleb@mars.jpl.nasa.gov's message of 25 May 90 20:58:01 GMT 1. Have your client read the event queue. 2. Just reading the event queue won't do it. Use select(2) on input, not error, and use "ioctl(DisplayNumber(dpy), FIONREAD, &count)" to get the number of bytes waiting to be read. When this is 0, but select indicates that input is available on the connection, you may assume EOF. Bill -- Bill Janssen janssen.pa@xerox.com (415) 494-4763 Xerox Palo Alto Research Center 3333 Coyote Hill Road, Palo Alto, California 94304