* ext/pty/pty.c (get_device_once): raise on error when fail is

non-zero.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-02-28 12:32:39 +00:00
parent 82a828a35d
commit 1a5a2bae57
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Sun Feb 28 21:32:36 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/pty/pty.c (get_device_once): raise on error when fail is
non-zero.
Sun Feb 28 15:12:37 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/open3.rb (Open3#popen3): ignore trap and at_exit also when

View file

@ -369,7 +369,7 @@ get_device_once(master, slave, SlaveName, fail)
}
close(i);
}
if (!fail) rb_raise(rb_eRuntimeError, "can't get Master/Slave device");
if (fail) rb_raise(rb_eRuntimeError, "can't get Master/Slave device");
return -1;
#else
const char *const *p;