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

Question regarding the shutdown function vs destruct's stop server #19

Open
grantlucas opened this issue Jun 12, 2015 · 2 comments
Open

Comments

@grantlucas
Copy link
Contributor

Out of curiosity, is it required to register a shutdown function to terminate the resource in addition to the stopServer() call in __desctruct()?

@tiger-seo
Copy link
Owner

yep, cause, AFAIK, it is not guaranteed to call __destruct() in any case, but i want to assure to hang server

@grantlucas
Copy link
Contributor Author

Thanks! Another question. Instead of calling just proc_terminate() in the shutdown function, would calling stopServer() make sense to ensure it all get shut down properly in each case?

I haven't experienced any issues, just wondering about the different shutdown approaches.

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