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:
parent
23e37eed8a
commit
023516621e
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue