eina debug - fix setuid process shutdown by initting fully except conn

init eina debug fully except for the debug daemon connection that the
setuid check was meant to skip. this fixes T7055
This commit is contained in:
Carsten Haitzler 2018-06-27 14:13:00 +09:00
parent 4aad39ce03
commit 194971342b
1 changed files with 3 additions and 3 deletions

View File

@ -715,6 +715,9 @@ eina_debug_init(void)
self = pthread_self();
_eina_debug_thread_mainloop_set(&self);
_eina_debug_thread_add(&self);
_eina_debug_cpu_init();
_eina_debug_bt_init();
_eina_debug_timer_init();
#if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
// if we are setuid - don't debug!
if (getuid() != geteuid()) return EINA_TRUE;
@ -726,9 +729,6 @@ eina_debug_init(void)
{
eina_debug_local_connect(EINA_FALSE);
}
_eina_debug_cpu_init();
_eina_debug_bt_init();
_eina_debug_timer_init();
return EINA_TRUE;
}