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

Is there a way to kill serve internally ? #29

Open
adfretlink opened this issue Oct 25, 2018 · 1 comment
Open

Is there a way to kill serve internally ? #29

adfretlink opened this issue Oct 25, 2018 · 1 comment

Comments

@adfretlink
Copy link

I might be missing something obvious, but if I'm using serve, do I have any way of making the server terminate ? For instance, if it were to receive a specific instruction to shutdown ? Since any code I can execute from server is run in a fork, I'm not sure there is way to do so. When daemonizing the server, you typically wants a way to tell it to shutdown, so how can I do that exactly ?

@mastarija
Copy link

@adfretlink you can communicate between processes by using Chan from base:Control.Concurrent.Chan.

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

2 participants