From 1dbb6423000e2fcd3fe9a1b6ddbf6200d522d470 Mon Sep 17 00:00:00 2001 From: Jiri Moskovcak Date: Thu, 27 Aug 2009 14:00:31 +0200 Subject: added signal JobStarted => removed the ugly sleep() hack --- src/Daemon/CrashWatcher.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/Daemon/CrashWatcher.cpp') diff --git a/src/Daemon/CrashWatcher.cpp b/src/Daemon/CrashWatcher.cpp index 2713179..288ecc0 100644 --- a/src/Daemon/CrashWatcher.cpp +++ b/src/Daemon/CrashWatcher.cpp @@ -119,18 +119,7 @@ static void *create_report(void *arg) thread_data_t *thread_data = (thread_data_t *) arg; map_crash_info_t crashReport; - /* Ugly hack. - * We use DBus signals to talk to clients. - * If the report thread emits a signal with embedded job id before - * main thread returns this job id as a CreateReport() DBus call's - * return value, the client will not be able to understand - * that this signal is for its job. - * By no means this is the right solution. The right one would be - * to ensure that CreateReport() DBus call returns _before_ - * we continue here. This will need substantial surgery - * on our DBus machinery. TODO. - */ - usleep(10*1000); + g_pCommLayer->JobStarted(thread_data->dest, thread_data->thread_id); log("Creating report..."); try -- cgit