diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-06-22 15:00:36 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-06-22 15:00:36 +0000 |
| commit | 3398183231d77043271880b408c8a7c45f49a01d (patch) | |
| tree | c323806a12fe50618d6294926fda85557677ce22 | |
| parent | 1dcf2fe8543eae5400c8b395e091c1f6e56d5cd5 (diff) | |
* io.c (rb_io_initialize): should check fcntl result. [ruby-dev:23742]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | io.c | 1 |
2 files changed, 5 insertions, 0 deletions
@@ -1,3 +1,7 @@ +Wed Jun 23 00:00:25 2004 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * io.c (rb_io_initialize): should check fcntl result. [ruby-dev:23742] + Tue Jun 22 21:11:36 2004 Masaki Suketa <masaki.suketa@nifty.ne.jp> * ext/win32ole/win32ole.c (OLE_FREE): should not call CoFreeUnuse- @@ -3748,6 +3748,7 @@ rb_io_initialize(argc, argv, io) else { #if defined(HAVE_FCNTL) && defined(F_GETFL) flags = fcntl(fd, F_GETFL); + if (flags == -1) rb_sys_fail(0); #else flags = O_RDONLY; #endif |
