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

Ensure pid directory exists #11

Merged
merged 1 commit into from
Aug 6, 2024
Merged

Ensure pid directory exists #11

merged 1 commit into from
Aug 6, 2024

Conversation

kleinschmidt
Copy link
Member

If DEPUTY_IPD_DIR points to a non-existent directory, then
graceful_terminator will fail with a write error. This adds a mkpath before
write to try to ensure that the directory exists before we try writing there.

Copy link

codecov bot commented Aug 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.12%. Comparing base (c43646a) to head (fe4cc1b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #11      +/-   ##
==========================================
+ Coverage   89.74%   90.12%   +0.37%     
==========================================
  Files           4        4              
  Lines          78       81       +3     
==========================================
+ Hits           70       73       +3     
  Misses          8        8              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kleinschmidt kleinschmidt requested a review from omus August 6, 2024 16:48
@omus omus changed the title help ensure that pid file is writeable using mkpath(dirname(file)) Ensure pid directory exists Aug 6, 2024
@omus omus merged commit 973acac into main Aug 6, 2024
7 checks passed
@omus omus deleted the dfk/mkpath branch August 6, 2024 18:08
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