nanosleep() replacement
Darren Tucker
dtucker at zip.com.au
Tue Mar 18 08:18:36 EST 2003
Tim Rice wrote:
> On Mon, 17 Mar 2003, Darren Tucker wrote:
> > Tim Rice wrote:
> > > + gettimeofday(&tsave, NULL);
> > > + rc = select(0, NULL, NULL, NULL, &time2wait);
> > > + if (rc) {
> >
> > Checking for rc == -1, right? Would "if (rc < 0)" be clearer?
>
> Any non 0 means it didn't timeout.
True, but since the number of fd's is 0 the only non-zero it'll ever
return is -1.
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
More information about the openssh-unix-dev
mailing list