forked from enlightenment/enlightenment
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
1ec2a4e91c
commit
50621ba9b4
|
@ -267,6 +267,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:
|
||||
|
@ -300,6 +301,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