diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-28 10:37:41 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-28 10:37:41 +0000 |
commit | 51cefa387c187aaa01c1023d4017fb48f5a4e361 (patch) | |
tree | b8f4afbfa9159026426fad36f1099364b9516ef0 /win32 | |
parent | 9d7e47114cca19a355f1410f2b7b48f150f0858c (diff) | |
download | ruby-51cefa387c187aaa01c1023d4017fb48f5a4e361.tar.gz |
* win32/wini32.c (LK_ERR): with overlapped I/O, LockFileEx() returns
ERROR_IO_PENDING if the file is locked.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r-- | win32/win32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c index 353873a22b..222af78c72 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -253,7 +253,7 @@ GetCurrentThreadHandle(void) i = 0; \ else { \ DWORD err = GetLastError(); \ - if (err == ERROR_LOCK_VIOLATION) \ + if (err == ERROR_LOCK_VIOLATION || err == ERROR_IO_PENDING) \ errno = EWOULDBLOCK; \ else if (err == ERROR_NOT_LOCKED) \ i = 0; \ |