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

Fix check for pre-existing eggdrop via pid file #1630

Closed

Conversation

michaelortmann
Copy link
Member

Found by: theZoMBiE
Patch by: michaelortmann
Fixes:

One-line summary:
Problem was reported as: eggdrop in a docker. sometimes server does not shutdown properly. when containers start back up, eggdrop keeps telling to delete the bot.pid file.

Additional description (if needed):
In general, with or without random PIDs, it could happen, a new eggdrop could end up with the same PID as the old one stored in the pid file. There cannot be 2 processed with the same PID, so if the new eggdrop has the same PID as the one in the pid file, that new eggdrop can conclude it just got the same PID and can go on starting up.

Test cases demonstrating functionality (if applicable):

@vanosg vanosg closed this Jun 23, 2024
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

Successfully merging this pull request may close these issues.

2 participants