8 void wusleep(unsigned int usec
)
12 /* An arbitrary limit of 10 minutes -- in WM, if
13 * somethings wants to sleep anything even close to
14 * this, it's most likely an error.
19 tm
.tv_sec
= usec
/ 1000000;
20 tm
.tv_nsec
= (usec
% 1000000) * 1000;
22 while (nanosleep(&tm
, &tm
) == -1 && errno
== EINTR
)