diff options
| author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-08-27 14:00:31 +0200 |
|---|---|---|
| committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-08-27 14:00:31 +0200 |
| commit | 1dbb6423000e2fcd3fe9a1b6ddbf6200d522d470 (patch) | |
| tree | d08261580175c8ad796d86bacbbc094c7aa08636 /src/Daemon/CrashWatcher.cpp | |
| parent | bc17e32391578ee0128fe73719d1f691613d18fe (diff) | |
| download | abrt-1dbb6423000e2fcd3fe9a1b6ddbf6200d522d470.tar.gz abrt-1dbb6423000e2fcd3fe9a1b6ddbf6200d522d470.tar.xz abrt-1dbb6423000e2fcd3fe9a1b6ddbf6200d522d470.zip | |
added signal JobStarted => removed the ugly sleep() hack
Diffstat (limited to 'src/Daemon/CrashWatcher.cpp')
| -rw-r--r-- | src/Daemon/CrashWatcher.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
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 |
