mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
* 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:
parent
82a828a35d
commit
1a5a2bae57
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue