Issue #5475 has been reported by Naohisa Goto.

----------------------------------------
Bug #5475: r33507以??Solaris???PTY???使??????
http://redmine.ruby-lang.org/issues/5475

Author: Naohisa Goto
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: ruby 2.0.0dev (2011-10-24) [sparc-solaris2.10]


r33507以?????Solaris???PTY??????????使?????????????
 % ruby -rpty -e 'PTY.spawn("/bin/cat") { |r,w,id| p r; p w; p id }'
???????????????
 -e:1:in `spawn': can't get Master/Slave device (RuntimeError)
         from -e:1:in `<main>'
???????????????????

make test-all ?????TestIO_Console??????????????????Skip?????????????????????
TestPTY???????????????Skip????????以????Error??????????????????????????????

  36) Skipped:
 test_echo(TestIO_Console) [/XXX/test/io/console/test_io_console.rb:171]:
 can't get Master/Slave device
(中??)
  46) Skipped:
 test_winsize(TestIO_Console) [/XXX/test/io/console/test_io_console.rb:171]:
 can't get Master/Slave device

 47) Skipped:
 test_argv0(TestPTY) [/XXX/test/test_pty.rb:49]:
 can't get Master/Slave device
(中??)
 80) Error:
 test_pty_check_default(TestPTY):
 RuntimeError: can't get Master/Slave device
    /XXX/test/test_pty.rb:170:in `spawn'
    /XXX/test/test_pty.rb:170:in `test_pty_check_default'
(以?????)

????????????追??????????ext/pty/pty.c:296 ??? grantpt(masterfd) ??? -1 ????????
errno ??? EACCES (Solaris10????13) ??????????
??????????r33507???????????????? ext/pty/pty.c:294 ??? rb_fd_set_cloexec(masterfd); ??? masterfd ??? FD_CLOEXEC ????????設????????????????????????????????????

Solaris?????grantpt(3) ??????? /usr/lib/pt_chmod ??????? setuid root ???????????????????????????????????????????????????????????????設????????????????????FD_CLOEXEC???pty???masterfd??設????????????????????????????????????????????close???????????????????????????????????????????close??????????????????????渡????????????????????????????楣測?????????



-- 
http://redmine.ruby-lang.org