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

Change: Ensure dir exists in pidfile_create #796

Merged
merged 2 commits into from
Oct 16, 2023

Conversation

mattmundell
Copy link
Contributor

@mattmundell mattmundell commented Sep 27, 2023

What

Make sure the dir exists when creating the PID file.

Also log the name of the file when creating the PID file fails.

Why

This always catches me when I install from source.

References

Precedent in logging:

if (g_mkdir_with_parents (dir, 0755)) /* "rwxr-xr-x" */

@mattmundell mattmundell marked this pull request as ready for review October 3, 2023 12:12
@mattmundell mattmundell requested a review from a team as a code owner October 3, 2023 12:12
@bjoernricks bjoernricks merged commit 19af05f into greenbone:main Oct 16, 2023
@mattmundell mattmundell deleted the ensure-pidfile-dir branch October 16, 2023 11:59
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.

3 participants