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

wwivd stability ideas #1640

Open
wwiv opened this issue Nov 28, 2024 · 0 comments
Open

wwivd stability ideas #1640

wwiv opened this issue Nov 28, 2024 · 0 comments

Comments

@wwiv
Copy link
Contributor

wwiv commented Nov 28, 2024

From apam@

I don't know if this is helpful or not... in servo (talismans wwivd thing) I
store the pid of each node that is forked off, then each time a new connection
comes in, go through each pid and see if it exists, and if it does check if the
process name is talisman. (The idea being that if the pid gets reused, it will
have a different name, though the likely hood of that happening are very low).
so if it doesn't exist or has a different name, the node is free, otherwise,
it's still in use.

Linux uses the proc filesystem to grab the process name, windows has a
different mechanism, i forget what right now - but the source code is there,
and macOS has libproc (*BSD uses /proc too).   
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

1 participant