diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-05-01 00:00:37 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-05-01 00:00:37 +0000 |
commit | 90c81fbe2d907b331e7eb0e9c50fa77ea062ecba (patch) | |
tree | e34d1ee93d6bd077c7f36349561d8ae12d6c3967 /file.c | |
parent | 394582a01276c272e37fcbe432d52b938b9d9dda (diff) | |
download | ruby-90c81fbe2d907b331e7eb0e9c50fa77ea062ecba.tar.gz ruby-90c81fbe2d907b331e7eb0e9c50fa77ea062ecba.tar.xz ruby-90c81fbe2d907b331e7eb0e9c50fa77ea062ecba.zip |
* regex.c (re_match_exec): $ _always_ matches at the end of string.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -2045,6 +2045,7 @@ rb_file_flock(obj, operation) if (fptr->mode & FMODE_WRITABLE) { fflush(GetWriteFile(fptr)); } + retry: TRAP_BEG; ret = flock(fileno(fptr->f), NUM2INT(operation)); TRAP_END; @@ -2056,6 +2057,11 @@ rb_file_flock(obj, operation) case EWOULDBLOCK: #endif return Qfalse; + case EINTR: +#if defined(ERESTART) + case ERESTART: +#endif + goto retry; } rb_sys_fail(fptr->path); } |