Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!helios.physics.utoronto.ca!ists!yunexus!davecb From: davecb@yunexus.UUCP (David Collier-Brown) Newsgroups: comp.windows.x Subject: Re: What is the politically correct way... Message-ID: <11248@yunexus.UUCP> Date: 28 May 90 12:09:38 GMT References: <3833@jato.Jpl.Nasa.Gov> Organization: York U. Computing Services Lines: 21 janssen@parc.xerox.com (Bill Janssen) writes: >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. Hmmn. I wonder if this is in part the answer to one of my unanswered questions of yore... I was looking at a means of detecting the disappearance of a (perfmeter) client, so that I could put up an icon of a little tombstone, for the immediate attention of the (group of) local system administrators. Does a second client reading the event queue strike you as a sane approach? --dave -- David Collier-Brown, | davecb@Nexus.YorkU.CA, ...!yunexus!davecb or 72 Abitibi Ave., | {toronto area...}lethe!dave Willowdale, Ontario, | "And the next 8 man-months came up like CANADA. 416-223-8968 | thunder across the bay" --david kipling