Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unix sockets aren't released on SIGHUP #220

Open
slayerjain opened this issue Aug 28, 2021 · 3 comments
Open

unix sockets aren't released on SIGHUP #220

slayerjain opened this issue Aug 28, 2021 · 3 comments

Comments

@slayerjain
Copy link

I'm on macOS 11.5.2. After stopping the server via SIGHUP and then starting again on the same Unix socket I get the following error:

OSError: [Errno 48] Address already in use

Is this expected? I currently have to keep changing the Unix socket path every time I restart the server from my IDE.

@jonashaag
Copy link
Owner

Not expected, PR welcome.

@jefcolbi
Copy link

Hi,
what is not expected? Is it normal to not release a port after the process terminates? I think no.
If it must be done could you point the part of the code to be modified ?
Thanks

@faunris
Copy link

faunris commented Dec 24, 2021

I think, for example, you can use the ev_signal_on_sigint function

ev_signal_on_sigint(struct ev_loop* mainloop, ev_signal* watcher, const int events)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants