Take down condition subsystem at shutdown/reboot

Leave the system as it was when we found it.  Also, we'll build things
on top of cond_is_available() to handle pre bootstrap and pre shutdown
tasks.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2022-11-07 06:44:21 +01:00
1 parent 585ac51f45
commit 5f74adad06
3 files changed
+20

No files matched your search

+3
View File
@@ -322,6 +322,9 @@ void do_shutdown(shutop_t op)
plugin_exit();
api_exit();
/* We can no longer act on conditions, activate script runner */
cond_exit();
/* Reap 'em */
while (waitpid(-1, NULL, WNOHANG) > 0)
;