Open chiefnoah opened 8 months ago
I think it would be best to clean up the socket on exit. @vyzo is there a good way to go about handling that?
On further investigation, it seems the issue is in signal handling. What's the general philosophy for handling signals in Gerbil?
we can install but i think the right way is to introduce some sort of exit handler -- some form of at-exit.
When running the ensemble registry, if you use the default unix socket and stop the process and restart it, it fails with the following:
This is likely because
socket-bind
expects the file to not exist and fails at the OS level when it does.There's a couple of different ways we can fix this:
If we go with the second option, we will need a second way to ensure we don't have multiple registry processes listening on the same socket.