From 023516621e4fb9de0879096761b60a6243dd541f Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Wed, 14 Jan 2015 11:48:05 +0900 Subject: [PATCH] e - force a config flush before sys actions that could kill e @fix this should fix T1988. after some looking here is what i think is happening. he is asking the system (sysvinit or systemd) to halt/reboot, but these end up killing the e process before it can save its config that is lurking around still in ram as opposed to on disk, so puttting in a config flush before beginning such a system action will ensure everything is on disk. --- src/bin/e_sys.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bin/e_sys.c b/src/bin/e_sys.c index 8c5d48ed8..2a5dd3b30 100644 --- a/src/bin/e_sys.c +++ b/src/bin/e_sys.c @@ -277,6 +277,7 @@ e_sys_action_do(E_Sys_Action a, char *param) _e_sys_current_action(); return 0; } + e_config_save_flush(); switch (a) { case E_SYS_EXIT: @@ -310,6 +311,7 @@ e_sys_action_raw_do(E_Sys_Action a, char *param) { int ret = 0; + e_config_save_flush(); if (_e_sys_action_current != E_SYS_NONE) { _e_sys_current_action();