1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/pty/pty.c (pty_getpty): follow rb_io_t's path -> pathv change.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2008-08-23 01:49:56 +00:00
parent d2cb86c532
commit 3721df734c
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Sat Aug 23 10:48:56 2008 Tanaka Akira <akr@fsij.org>
* ext/pty/pty.c (pty_getpty): follow rb_io_t's path -> pathv change.
Sat Aug 23 10:42:52 2008 Tanaka Akira <akr@fsij.org>
* io.c (check_pipe_command): extracted from rb_f_open and rb_io_open.

View file

@ -415,11 +415,11 @@ pty_getpty(int argc, VALUE *argv, VALUE self)
rfptr->mode = rb_io_mode_flags("r");
rfptr->fd = info.fd;
rfptr->path = strdup(SlaveName);
rfptr->pathv = rb_obj_freeze(rb_str_new_cstr(SlaveName));
wfptr->mode = rb_io_mode_flags("w") | FMODE_SYNC;
wfptr->fd = dup(info.fd);
wfptr->path = strdup(SlaveName);
wfptr->pathv = rfptr->pathv;
res = rb_ary_new2(3);
rb_ary_store(res,0,(VALUE)rport);