nanosleep() replacement Take 2
Darren Tucker
dtucker at zip.com.au
Tue Mar 18 13:26:07 EST 2003
Tim Rice wrote:
> But I think we should have
> saverrno = errno;
> gettimeofday (&tstop, NULL);
> errno = saverrno;
> inside of if (rc == -1) {
> and get rid of the second if (rc == -1)
> (that's how I tested it)
I thought about that (and tried it, it works fine) but wasn't sure.
It's certainly neater and it's fine by me.
Is there any chance of TIMEVAL_TO_TIMESPEC() ever messing with errno?
--
Darren Tucker (dtucker at zip.com.au)
GPG Fingerprint 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