Skip to content

Separate error handling for empty pidfile#1195

Merged
eulerto merged 3 commits intopgbouncer:masterfrom
greg-rychlewski:pidfile
Oct 31, 2024
Merged

Separate error handling for empty pidfile#1195
eulerto merged 3 commits intopgbouncer:masterfrom
greg-rychlewski:pidfile

Conversation

@greg-rychlewski
Copy link
Contributor

Closes #1174

Copy link
Member

@eulerto eulerto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR seems reasonable to me. However, I have some suggestion. Instead of having a different message for this case (empty file), use goto locked_pidfile. It reports exact situation. I also suggest that you change the goto message to include the pidfile name.

@greg-rychlewski
Copy link
Contributor Author

Thank you :). Updated.

@eulerto eulerto merged commit 4caacb7 into pgbouncer:master Oct 31, 2024
rajaryanece pushed a commit to rajaryanece/pgbouncer that referenced this pull request Jan 16, 2025
If a pid file exists but was empty, the current error message was that PgBouncer could not read the file. It is bogus. Instead, provide another message saying the file exists.

Closes pgbouncer#1174
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.

could not read pidfile while running in daemon mode.

2 participants