Path: utzoo!attcan!uunet!samsung!think!snorkelwacker!apple!netcom!hue From: hue@netcom.UUCP (Jonathan Hue) Newsgroups: comp.unix.wizards Subject: Re: repeatability of select() (correction) Summary: I meant 0 timeout, not NULL timeval pointer Message-ID: <9174@netcom.UUCP> Date: 14 Mar 90 17:57:59 GMT References: <9156@netcom.UUCP> Organization: NetCom- The Bay Area's Public Access Unix System {408 249-0290 guest} Lines: 16 In article <9156@netcom.UUCP> hue@netcom.UUCP (Jonathan Hue) writes: >case #2: > select(nfds, rdset, wrset, exset, timeout_p); > /* reset rdset, wrset, and exset to their original values */ > ... > n = select(nfds, rdset, wrset, exset, (struct timeval *) 0); I screwed up, instead of that last line there it should have been something like: zero.tv_sec = 0; zero.tv_usec = 0; n = select(nfds, rdset, wrset, exset, &zero); -Jonathan