From owner-freebsd-current Sun Jan 10 05:58:40 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA22866 for freebsd-current-outgoing; Sun, 10 Jan 1999 05:58:40 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.force9.co.uk [195.166.136.63]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA22857 for ; Sun, 10 Jan 1999 05:58:37 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from keep.lan.Awfulhak.org (root@keep.lan.Awfulhak.org [172.16.0.8]) by awfulhak.org (8.8.8/8.8.8) with ESMTP id NAA13597 for ; Sun, 10 Jan 1999 13:57:14 GMT (envelope-from brian@Awfulhak.org) Received: from keep.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by keep.lan.Awfulhak.org (8.9.1/8.9.1) with ESMTP id NAA00734 for ; Sun, 10 Jan 1999 13:58:25 GMT (envelope-from brian@keep.lan.Awfulhak.org) Message-Id: <199901101358.NAA00734@keep.lan.Awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: current@FreeBSD.ORG Subject: Incorrect EAGAIN & select() exceptions Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 10 Jan 1999 13:58:25 +0000 From: Brian Somers Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, Something weird is happening in -current. I installed world, a kernel and bootblocks on Jan 6 - I can't say for sure that it wasn't happening before this as I usually do all ppp testing via the loopback interface on a single machine for convenience. Yesterday, I tried using ppp on the above -current via a tty and got two weird results, both happen at random intervals, but are reasonably easy to reproduce. 1. I select() on a tty descriptor for reading (and writing & exceptions). Select comes back with the read descriptor set, I do a read() and get -1 with errno EAGAIN. This must be wrong ! 2. I select() on a tty descriptor for reading, writing and exceptions and get the exception fd_set bit set. This has never happened before, and it was only a few weeks ago that I even had ppp not always abend when an exception is detected. Does anybody know what's going on (before I look into things further) ? Help would be appreciated if anyone has any su{spicions,gestions}. Cheers. -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message