助田です In message "[ruby-list:5470] communicate with subprocess part II" Kikutani Makoto <kikutani / jdc.ericsson.se> writes : >きくたにです。 > >またまたサブプロセスとの通信なのです。 >% ruby ipc-test1.rb >ipc1.rb: int byte = 78 >ipc1.rb: int byte = 56 >ipc1.rb: int byte = 34 >ipc1.rb: int byte = 12 > >で終ってしまうです。子からの"OK"を親が受けとってくれない。 書き込んだ後で$stdout.flush f.flush を親子ともいれてみては どうでしょうか? #うちの環境(HP-UX9.04)では、これいれても #ipc1.rb: int byte = 78 #ipc1.rb: int byte = 56 #ipc1.rb: int byte = 34 #ipc1.rb: int byte = 12 #OK #で終わっちゃうんですけどIO周辺が HP-UX では前回の話で動作が #違うみたいだし。 助田 雅紀(masaki.suketa / tonen.co.jp)