spawn: Add debugging information when switching to timeout source
This commit is contained in:
parent
29d14b1c99
commit
175e45ab47
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user