[erlang-questions] Passing Filehandles Between Processes
Thu Oct 8 22:26:41 CEST 2009
On Thu, Oct 8, 2009 at 9:41 PM, Erickson, John <john.erickson@REDACTED> wrote:
> Hi, I have noticed that Erlang acts strangely when I pass a file handle from one process to another (for local threads). It seems that the port sends the data back to the process that opened the file rather than the current one using the handle. Is this a bug? Or is there a reason this cannot be done? The only workaround I have found is to close and reopen the file whenever I pass it to a new process.
Are you speaking about sockets? If yes, than look at gen_tcp:controlling_process
More information about the erlang-questions