[erlang-questions] Sockets and linking processes

Liam Clarke ml.cyresse@REDACTED
Sun Sep 24 11:35:28 CEST 2006


Thanks to you both, that makes my error handling a lot easier.

Regards,

Liam Clarke
On 9/24/06, Scott Lystig Fritchie <fritchie@REDACTED> wrote:
> >>>>> "lc" == Liam Clarke <ml.cyresse@REDACTED> 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.
>
> -Scott
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list