*BSD News Article 43514


Return to BSD News archive

Xref: sserve comp.os.386bsd.misc:5599 comp.unix.bsd.freebsd.misc:94
Newsgroups: comp.os.386bsd.misc,comp.unix.bsd.freebsd.misc
Path: sserve!gco
From: gco@sserve.cc.adfa.oz.au (Geoff Collin)
Subject: problem with the "select" system call?
Message-ID: <1995Mar20.110536.3047@sserve.cc.adfa.oz.au>
Organization: Australian Defence Force Academy, Canberra, Australia
Date: Mon, 20 Mar 1995 11:05:36 GMT

I am using "select" to wait for input on a number of UDP sockets.
"Select" returns normally, usually with the value of one when a datagram
arrives but the mask of read file descriptors passed to select are 
returned unchanged. Consequently, I cannot determine which file
descriptor I can read from.
I have been known to write incorrect code but perhaps "select" is
misbehaving (using FreeBSD 1.1.5.1)??
Any help would be greatly appreciated.

Geoff
-- 
Geoff Collin,		       		Phone: +61 6 2688142
Computer Centre, UC, UNSW,   		Fax  : +61 6 2688150
Australian Defence Force Academy,   	Email: Geoff.Collin@adfa.oz.au
Canberra ACT 2600. AUSTRALIA