kill e process before alert in non-x uses

This commit is contained in:
Carsten Haitzler 2019-09-27 19:29:14 +01:00
parent fed69a7380
commit 6d8a1bd3fe
2 changed files with 11 additions and 5 deletions

2
TODO
View File

@ -90,8 +90,6 @@ TODO:
logging like tables, icons, timelines and graphs that can be output
in text emulation and to screen - change eina log to go into here
with eina_log_print_cb_set() )
* crash alert: we have to kill e to get kms control which breaks gdb
* grab data then kill e then display results?
* watchdog: add watchdog handling to e_start to detect a hung e
* also detect if frames stop rendering but loop ok?
* settings: config dialog redo and simplification

View File

@ -762,14 +762,22 @@ not_done:
else
r = 0;
/* kill e */
if (!getenv("DISPLAY"))
{
kill(child, SIGKILL);
usleep(500000);
}
/* call e_alert */
r = _e_call_alert(child, sig, r, backtrace_str,
remember_sigusr1);
free(backtrace_str);
/* kill e */
kill(child, SIGKILL);
if (getenv("DISPLAY"))
{
kill(child, SIGKILL);
}
if (WEXITSTATUS(r) == 1)
restart = EINA_FALSE;
}