Re: [PATCH 5/6] On Solaris nanosleep() is not in libc but in librt

From: Alex Riesen <raa.lkml@gmail.com>
Date: 2006-08-15 21:18:17
On 8/15/06, Junio C Hamano <junkio@cox.net> wrote:
> > -# Define NEEDS_SOCKET if linking with libc is not enough (SunOS,
> > -# Patrick Mauritz).
> > +# Define NEEDS_SOCKET if linking with libc is not enough for socket()
> > +# (SunOS, Patrick Mauritz).
> > +#
> > +# Define NEEDS_RT if linking with libc is not enough for nanosleep() (SunOS)
>
> Ah, nanosleep(2) was my fault, and we should be able to just use
> straight sleep(3) there.  The purpose of the loop is to wait
> until the next filesystem timestamp granularity, and the code
> uses subsecond sleep in the hope that it can shorten the delay
> to 0.5 seconds on average instead of a full second.

Was it not SunOS where sleep was implemented by means of SIGALRM?
Besides, we still can shorten the delay by using select(2).
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Tue Aug 15 21:19:00 2006

This archive was generated by hypermail 2.1.8 : 2006-08-15 21:19:31 EST