From: Tanaka Akira Date: 2004-05-04T14:49:10+09:00 Subject: Re: UNIXSocket#send_io and #recv_io In article <4095E404.8050808@hypermetrics.com>, Hal Fulton writes: > have_struct_member: checking for struct msghdr.msg_control... > -------------------- yes It seems that 4.4BSD or Linux. I don't know why it doesn't work. It works on Linux as follows. % ruby-1.8.1 -v -rsocket -e ' p1, p2 = UNIXSocket.pair pid = fork { w = p2.recv_io w.print "a" } r, w = IO.pipe p1.send_io(w) w.close p1.close p2.close p r.gets r.close Process.wait pid ' ruby 1.8.1 (2003-12-25) [i686-linux] "a" Note that ruby-1.8.0 had a bug. -- Tanaka Akira