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.
This commit is contained in:
Carsten Haitzler 2015-01-14 11:48:05 +09:00 committed by Mike Blumenkrantz
parent 23e37eed8a
commit 023516621e
1 changed files with 2 additions and 0 deletions

View File

@ -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();