Skip to content

Instantly share code, notes, and snippets.

@stintel
Created November 24, 2021 16:34
Show Gist options
  • Save stintel/9f6c5a8690d1ab43ba2b208def6c716a to your computer and use it in GitHub Desktop.
Save stintel/9f6c5a8690d1ab43ba2b208def6c716a to your computer and use it in GitHub Desktop.
stdin
diff --git a/state.c b/state.c
index fb81248..bf7557f 100644
--- a/state.c
+++ b/state.c
@@ -224,6 +224,7 @@ void procd_shutdown(int event)
if (state >= STATE_SHUTDOWN)
return;
DEBUG(2, "Shutting down system with event %x\n", event);
+ service_stop_all();
reboot_event = event;
state = STATE_SHUTDOWN;
state_enter();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment