summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-12-05 09:40:33 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-12-05 09:40:33 +0000
commit9e557661c24d13051b6ef180028cc173433e6b2e (patch)
tree6b7bef785c557d7cc4852dbaafc70e0e44c04c42 /win32
parente57e5c5b07762dd7983adc87c2a278449423659e (diff)
merges r25133 from trunk into ruby_1_9_1. c.f. [ruby-dev:39819]
-- * 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/branches/ruby_1_9_1@26016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c
index e10fa89661..0f60dcd7a4 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -251,7 +251,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; \