[erlang-questions] what does open_port({fd,0,1},...) do?

Maxim Treskin zerthurd@REDACTED
Wed Oct 1 07:11:19 CEST 2008

erl -man erlang

open_port(PortName, PortSettings) -> port()
                    PortName = {spawn, Command} | {fd, In, Out}
                       Command = string()
                       In = Out = int()
                {fd, In, Out}:
                    Allows  an  Erlang  process to access any currently
opened file descriptors used by Erlang. The file descriptor In can be
                    used for standard input, and the file descriptor Out for
standard output. It is only used  for  various  servers  in  the
                    Erlang operating system (shell and user). Hence, its use
is very limited.

Maxim Treskin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20081001/a918a739/attachment.htm>

More information about the erlang-questions mailing list