mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
rdoc update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5c94b5d113
commit
88860a065e
1 changed files with 1 additions and 1 deletions
|
@ -184,7 +184,7 @@ ancillary_data(VALUE self)
|
|||
*
|
||||
* s1, s2 = UNIXSocket.pair
|
||||
* p s1 #=> #<UNIXSocket:fd 3>
|
||||
* s1.sendmsg "standard IOs", 0, nil, [:SOCKET, :RIGHTS, [0,s1.fileno].pack("ii")]
|
||||
* s1.sendmsg "stdin and a socket", 0, nil, [:SOCKET, :RIGHTS, [0,s1.fileno].pack("ii")]
|
||||
* _, _, _, ctl = s2.recvmsg
|
||||
* p ctl.unix_rights #=> [#<IO:fd 6>, #<Socket:fd 7>]
|
||||
* p File.identical?(STDIN, ctl.unix_rights[0]) #=> true
|
||||
|
|
Loading…
Reference in a new issue