mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* win32/win32.c (flock_winnt, flock_win95): unlock file even if
LOCK_NB is specified. (backported from CVS HEAD) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8452085ea9
commit
bf748365c7
2 changed files with 7 additions and 0 deletions
|
|
@ -1,3 +1,8 @@
|
|||
Wed Jan 26 10:51:50 2005 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* win32/win32.c (flock_winnt, flock_win95): unlock file even if
|
||||
LOCK_NB is specified. (backported from CVS HEAD)
|
||||
|
||||
Tue Jan 25 17:11:51 2005 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* ruby.c (proc_options): correct -T option in RUBYOPT. (backported
|
||||
|
|
|
|||
|
|
@ -293,6 +293,7 @@ flock_winnt(VALUE self, int argc, VALUE* argv)
|
|||
0, LK_LEN, LK_LEN, &o), i);
|
||||
break;
|
||||
case LOCK_UN: /* unlock lock */
|
||||
case LOCK_UN|LOCK_NB: /* unlock is always non-blocking, I hope */
|
||||
LK_ERR(UnlockFileEx(fh, 0, LK_LEN, LK_LEN, &o), i);
|
||||
break;
|
||||
default: /* unknown */
|
||||
|
|
@ -320,6 +321,7 @@ flock_win95(VALUE self, int argc, VALUE* argv)
|
|||
LK_ERR(LockFile(fh, 0, 0, LK_LEN, LK_LEN), i);
|
||||
break;
|
||||
case LOCK_UN:
|
||||
case LOCK_UN|LOCK_NB:
|
||||
LK_ERR(UnlockFile(fh, 0, 0, LK_LEN, LK_LEN), i);
|
||||
break;
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue