Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Sat, 10 Mar 2018 00:55:04 UTC Commit: 175e45ab47068f6bad24815609889d1f61021bf8 https://github.com/geany/geany/commit/175e45ab47068f6bad24815609889d1f61021b...
Log Message: ----------- spawn: Add debugging information when switching to timeout source
Modified Paths: -------------- src/spawn.c
Modified: src/spawn.c 5 lines changed, 5 insertions(+), 0 deletions(-) =================================================================== @@ -64,8 +64,10 @@ #ifdef SPAWN_TEST # define _ # define GEANY_API_SYMBOL +# define geany_debug g_debug #else # include "support.h" +# include "geany.h" #endif
#if ! GLIB_CHECK_VERSION(2, 31, 20) && ! defined(G_SPAWN_ERROR_TOO_BIG) @@ -1013,6 +1015,9 @@ static gboolean spawn_read_cb(GIOChannel *channel, GIOCondition condition, gpoin GSource *old_source = g_main_current_source(); GSource *new_source = g_timeout_source_new(50);
+ geany_debug("Switching spawn source %s ((GSource*)%p on (GIOChannel*)%p) to a timeout source", + g_source_get_name(old_source), (gpointer) old_source, (gpointer)sc->channel); + g_io_channel_ref(sc->channel); g_source_set_can_recurse(new_source, g_source_get_can_recurse(old_source)); g_source_set_callback(new_source, spawn_timeout_read_cb, data, spawn_timeout_destroy_cb);
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).