[GRASS-dev] g.mapsets use of sleep()

Glynn Clements glynn at gclements.plus.com
Fri May 18 12:24:37 EDT 2007

Moritz Lennert wrote:

> Just not sure: is 0 the correct value to return ? IIUC this is the value 
> returned by the unistd.h version of sleep.

       Zero if the requested time has elapsed, or the number of  seconds  left
       to sleep.

It will return non-zero if sleep() is interrupted by a signal before
the requested number of seconds has elapsed.

AFAICT, nothing in GRASS actually uses the return value, so you could
just re-define G_sleep() as void.

Glynn Clements <glynn at gclements.plus.com>

More information about the grass-dev mailing list