Init the communication with the daemon from the debug thread

This commit is contained in:
Daniel Zaoui 2017-05-26 08:52:52 +03:00
parent d6e3ab67db
commit 6e93528f41
1 changed files with 3 additions and 2 deletions

View File

@ -514,8 +514,6 @@ _session_create(int fd)
session->fd = fd;
// start the monitor thread
_thread_start(session);
_daemon_greet(session);
_opcodes_register_all(session);
return session;
}
@ -610,6 +608,9 @@ _monitor(void *_data)
#ifndef _WIN32
Eina_Debug_Session *session = _data;
_daemon_greet(session);
_opcodes_register_all(session);
// set a name for this thread for system debugging
#ifdef EINA_HAVE_PTHREAD_SETNAME
# ifndef __linux__