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

Duplicate handling should check if PID is used by another process before killing #31

Open
andeero opened this issue Jan 24, 2017 · 1 comment

Comments

@andeero
Copy link
Member

andeero commented Jan 24, 2017

When JAU restarts, it should check if the PID it tries to kill actually is the previously managed process or if the PID is now in use by another process.

@totto
Copy link
Member

totto commented Jan 24, 2017

From observation

  • JAU restarts
  • JAU lookup the PID for its application
  • JAU find the PID active
  • JAU try to kill the process - fail since the PID is re-used by another process for another user
  • JAU give up, and do not start its application => deadlock (as long as the PID is "active" and owned by "others"

Solution? - if unable to kill PID... remove persisted file with PID - restart JAU or retry start application

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