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