repeatability of select() (correction)

Jonathan Hue hue at netcom.UUCP
Thu Mar 15 03:57:59 AEST 1990


In article <9156 at netcom.UUCP> hue at 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



More information about the Comp.unix.wizards mailing list