1
0
Fork 0
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:
akr 2009-02-22 04:06:15 +00:00
parent 5c94b5d113
commit 88860a065e

View file

@ -184,7 +184,7 @@ ancillary_data(VALUE self)
* *
* s1, s2 = UNIXSocket.pair * s1, s2 = UNIXSocket.pair
* p s1 #=> #<UNIXSocket:fd 3> * 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 * _, _, _, ctl = s2.recvmsg
* p ctl.unix_rights #=> [#<IO:fd 6>, #<Socket:fd 7>] * p ctl.unix_rights #=> [#<IO:fd 6>, #<Socket:fd 7>]
* p File.identical?(STDIN, ctl.unix_rights[0]) #=> true * p File.identical?(STDIN, ctl.unix_rights[0]) #=> true