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

Centralize restart of dockerd #156

Merged
merged 4 commits into from
Mar 25, 2024
Merged

Centralize restart of dockerd #156

merged 4 commits into from
Mar 25, 2024

Conversation

killenheladagen
Copy link
Contributor

@killenheladagen killenheladagen commented Mar 22, 2024

By running g_main_loop_run() in a while-loop, other parts of the program can retry starting dockerd by simply calling g_main_loop_quit(). To exit this loop, call quit_program(), which will also set the global acap_exit_code variable.

This is needed when e.g. AXStorage is used to wait for SD card to become available.

Checklist before requesting a review

  • I have performed a self-review of my own code
  • I have verified that the code builds perfectly fine on my local system
  • I have added tests that prove my fix is effective or that my feature works
  • I have commented my code, particularly in hard-to-understand areas
  • I have verified that my code follows the style already available in the repository
  • I have made corresponding changes to the documentation

Callbacks from unknown parameters isn't something that happens,
and if it did, it wouldn't be a big deal anyway.

Removing is a step towards removing global variable 'restart_dockerd'.
By running g_main_loop_run() in a while-loop, other parts of the
program can retry starting dockerd by simply calling
g_main_loop_quit(). To exit this loop, call quit_program(), which will
also set the global acap_exit_code variable.

This is needed then e.g. axstorage is used to wait for SD card to
become available.
@killenheladagen killenheladagen requested a review from a team as a code owner March 22, 2024 21:16
Base automatically changed from rm-unknown-param to main March 25, 2024 08:20
@madelen-at-work madelen-at-work merged commit ab63604 into main Mar 25, 2024
12 checks passed
@madelen-at-work madelen-at-work deleted the restart-dockerd branch March 25, 2024 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants