[ABRT PATCH] abrt-dbus: send new problem notify signal to socket
Jakub Filak
jfilak at redhat.com
Thu Aug 1 15:23:40 UTC 2013
Since abrtd no longer reacts to new problem dirs, we need to trigger
"post-create" via socket.
This change continues work to implement feature in ticket #657
Signed-off-by: Jakub Filak <jfilak at redhat.com>
---
src/dbus/abrt-dbus.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/dbus/abrt-dbus.c b/src/dbus/abrt-dbus.c
index 72d0260..ab48d1c 100644
--- a/src/dbus/abrt-dbus.c
+++ b/src/dbus/abrt-dbus.c
@@ -174,11 +174,10 @@ static char *handle_new_problem(GVariant *problem_info, uid_t caller_uid, char *
problem_data_add_basics(pd);
char *problem_id = problem_data_save(pd);
- if (!problem_id)
- {
- if (error)
- *error = xasprintf("Cannot create a new problem");
- }
+ if (problem_id)
+ notify_new_path(problem_id);
+ else if (error)
+ *error = xasprintf("Cannot create a new problem");
problem_data_free(pd);
return problem_id;
--
1.8.3.1
More information about the Crash-catcher
mailing list