[geany/geany-plugins] 610d81: removed unnecessary mail loop attach call
Alexander Petukhov
git-noreply at xxxxx
Sun Aug 26 22:58:18 UTC 2012
Branch: refs/heads/master
Author: Alexander Petukhov <devel at apetukhov.ru>
Committer: Alexander Petukhov <devel at apetukhov.ru>
Date: Sun, 08 Jul 2012 08:52:43
Commit: 610d81ec963a1b3e0e9a7849458556a588dafaee
https://github.com/geany/geany-plugins/commit/610d81ec963a1b3e0e9a7849458556a588dafaee
Log Message:
-----------
removed unnecessary mail loop attach call
Modified Paths:
--------------
debugger/src/dbm_gdb.c
Modified: debugger/src/dbm_gdb.c
7 files changed, 3 insertions(+), 4 deletions(-)
===================================================================
@@ -88,7 +88,7 @@ enum sr {
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);
@@ Diff output truncated at 100000 characters. @@
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).
More information about the Plugins-Commits
mailing list