mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 05:52:48 +07:00
Fix #320: close API/IPC socket immediately in shutdown/reboot
This protects against any hook scripts or services calling initctl when we're going down. There's no way to service these requests anyway, so no point in keeping the socket open. This way initctl can check for the existence of the socket before attempting any IPC command. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -318,9 +318,8 @@ void do_shutdown(shutop_t op)
|
||||
do_iterate_proc(kill_cb, &signo);
|
||||
}
|
||||
|
||||
/* Exit plugins and API gracefully */
|
||||
/* Exit plugins gracefully */
|
||||
plugin_exit();
|
||||
api_exit();
|
||||
|
||||
/* We can no longer act on conditions, activate script runner */
|
||||
cond_exit();
|
||||
|
||||
Reference in New Issue
Block a user