[erlang-questions] Ruby and open_port

Tom Burdick thomas.burdick@REDACTED
Fri May 18 18:43:47 CEST 2012


I'm trying to use ruby as an erlang port using erlectricity which
nicely uses nouse_stdio for the port (fd's 3 and 4).

In Ruby 1.9.3 fd 3 at least is now reserved by the ruby vm. I don't
want to use stdio if I can help it. Is there a nice way to setup a
custom pipe using open_port? I see it can take {fd, In, Out} but I
wasn't sure how I might set that up where it spawns and sets up a
different pipe pair.

Any help would be appreciated!


More information about the erlang-questions mailing list