Skip to content
Browse files

removed unnecessary mail loop attach call

  • Loading branch information...
1 parent 33521c8 commit 610d81ec963a1b3e0e9a7849458556a588dafaee @cesspit cesspit committed Jul 8, 2012
Showing with 3 additions and 4 deletions.
  1. +3 −4 debugger/src/dbm_gdb.c
View
7 debugger/src/dbm_gdb.c
@@ -88,7 +88,7 @@ static GPid gdb_pid = 0;
static GPid target_pid = 0;
/* GSource to watch GDB exit */
-static GSource *gdb_src;
+static guint gdb_src_id;
/* channels for GDB input/output */
static gint gdb_in;
@@ -192,7 +192,7 @@ static void on_gdb_exit(GPid pid, gint status, gpointer data)
g_list_free(files);
files = NULL;
- g_source_destroy(gdb_src);
+ g_source_remove(gdb_src_id);
dbg_cbs->set_exited(0);
}
@@ -744,8 +744,7 @@ static gboolean run(const gchar* file, const gchar* commandline, GList* env, GLi
setpgid(gdb_pid, 0);
/* set handler for gdb process exit event */
- g_child_watch_add(gdb_pid, on_gdb_exit, NULL);
- gdb_src = g_child_watch_source_new(gdb_pid);
+ gdb_src_id = g_child_watch_add(gdb_pid, on_gdb_exit, NULL);
/* create GDB GIO chanels */
gdb_ch_in = g_io_channel_unix_new(gdb_in);

0 comments on commit 610d81e

Please sign in to comment.
Something went wrong with that request. Please try again.