Hacker News new | ask | show | jobs
by twic 1431 days ago
Not quite. Terminating a process releases its filehandles, and if any sockets are now unreferenced, they are closed. But if there is a live filehandle in another process, the socket stays alive.

You can send socket file handles over UNIX domain sockets, so you could use this to export your list of sockets to persist over restart.

1 comments

Yep (reference counting in play), It is already mentioned in the SO answer i linked to.