|
@@ -82,6 +82,10 @@ unsigned int sleep (unsigned int seconds)
|
|
|
|
|
|
|
|
|
|
result = nanosleep (&ts, &ts);
|
|
result = nanosleep (&ts, &ts);
|
|
|
|
+ if (result != 0) {
|
|
|
|
+
|
|
|
|
+ result = (unsigned int) ts.tv_sec + (ts.tv_nsec >= 500000000L);
|
|
|
|
+ }
|
|
|
|
|
|
if (!__sigismember (&set, SIGCHLD)) {
|
|
if (!__sigismember (&set, SIGCHLD)) {
|
|
|
|
|
|
@@ -91,10 +95,6 @@ unsigned int sleep (unsigned int seconds)
|
|
sigprocmask (SIG_SETMASK, &set, NULL);
|
|
sigprocmask (SIG_SETMASK, &set, NULL);
|
|
}
|
|
}
|
|
|
|
|
|
- if (result != 0)
|
|
|
|
-
|
|
|
|
- result = (unsigned int) ts.tv_sec + (ts.tv_nsec >= 500000000L);
|
|
|
|
-
|
|
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|