projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Zero rem as darwin returns a funny value when nanosleep is interrupted.
[mono.git]
/
mono
/
io-layer
/
wthreads.c
diff --git
a/mono/io-layer/wthreads.c
b/mono/io-layer/wthreads.c
index 8b4675c647977b6374bbf4f4a4c14c63f8e8e461..4a4a8e21879f52f07729631dc18176e2ac5fdc43 100644
(file)
--- a/
mono/io-layer/wthreads.c
+++ b/
mono/io-layer/wthreads.c
@@
-1022,6
+1022,7
@@
guint32 SleepEx(guint32 ms, gboolean alertable)
req.tv_nsec=ms_rem*1000000;
again:
+ memset (&rem, 0, sizeof (rem));
ret=nanosleep(&req, &rem);
if (alertable && _wapi_thread_apc_pending (current_thread)) {