[erlang-questions] Sockets and linking processes
Scott Lystig Fritchie
fritchie@REDACTED
Sun Sep 24 08:34:40 CEST 2006
>>>>> "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
More information about the erlang-questions
mailing list