[erlang-questions] multiple processes using a raw mode file
Bengt Kleberg
bengt.kleberg@REDACTED
Thu Oct 21 07:41:37 CEST 2010
Greetings,
The return value of file:open/2 is said to be a process (presumably that
means a pid). The pid returned for a raw file open could be just a file
descriptor (a guess). It would not be usable outside of the Erlang node.
A real pid can be sent to any node. The file descriptor would only work
for Erlang processes inside the same node, if my guess is right.
bengt
On Wed, 2010-10-20 at 16:17 +0200, Joel Reymont wrote:
> Why is there a limitation of only the process that opened a raw file being able to use that file?
>
> file:open returns a port, shouldn't any process be able to use that port?
>
> I'd like multiple processes to be able to use a file opened in raw mode.
>
> Thanks, Joel
>
> ---
> http://twitter.com/wagerlabs
>
>
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:erlang-questions-unsubscribe@REDACTED
>
More information about the erlang-questions
mailing list