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

PID counter in processserver can overflow #68

Open
eikendev opened this issue Mar 27, 2020 · 0 comments
Open

PID counter in processserver can overflow #68

eikendev opened this issue Mar 27, 2020 · 0 comments
Labels
bug Something isn't working server

Comments

@eikendev
Copy link
Collaborator

We currently set num_proc in the server's state to 0 initially, and increment for each process that is registered.

We should handle overflows, so the same PID cannot be assigned to two different processes. Instead of incrementing once only, we could increment until the first "free" PID is reached, i.e., num_proc is not currently used for any other dispatcher that is still alive.

@eikendev eikendev added bug Something isn't working server labels Mar 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working server
Projects
None yet
Development

No branches or pull requests

1 participant