[erlang-questions] Sockets and linking processes
Sun Sep 24 11:35:28 CEST 2006
Thanks to you both, that makes my error handling a lot easier.
On 9/24/06, Scott Lystig Fritchie <> wrote:
> >>>>> "lc" == Liam Clarke <> writes:
> lc> I've linked A and B, but what I'm wondering is if A fails, which
> lc> will kill B also, if B's socket is still open, will it close it
> lc> gracefully or will it leave the remote end hanging?
> All driver ports owned by a process are automatically closed when the
> owning process exits. Gen_tcp and gen_udp use driver ports, too, so
> yes, B's sockets will be closed when B dies.
> erlang-questions mailing list
More information about the erlang-questions