Fix handling of child exit signal 62/215762/4
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Mon, 14 Oct 2019 14:29:39 +0000 (16:29 +0200)
committerKarol Lewandowski <k.lewandowsk@samsung.com>
Mon, 21 Oct 2019 13:53:57 +0000 (13:53 +0000)
Change-Id: I01fcd716666876b6d4b03cce4a2f1e278118f547

src/crash-service/crash-service.c

index fa223f2..7b0a798 100644 (file)
@@ -141,6 +141,8 @@ static gboolean read_result_cb(gpointer data)
                                              g_variant_new("(s)", report_path));
 end:
        close(cb_data->read_fd);
+
+       waitpid(cb_data->child_pid, NULL, 0);
        free(cb_data);
        return G_SOURCE_REMOVE;
 }
@@ -313,7 +315,6 @@ static bool dbus_init(void)
 
 int main(void)
 {
-       signal(SIGCHLD, child_exit);
        loop = g_main_loop_new(NULL, false);
 
        if (!dbus_init()) {