From a75654a326dadebacc229762eb01f5e7c65b1ccc Mon Sep 17 00:00:00 2001 From: hiro Date: Tue, 29 Sep 2009 07:49:30 +0000 Subject: made GDK locks reentrant, and made LogWindow thread-safe. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2259 ee746299-78ed-0310-b773-934348b2243d --- libsylph/utils.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'libsylph/utils.c') diff --git a/libsylph/utils.c b/libsylph/utils.c index c0664488..fb9f30be 100644 --- a/libsylph/utils.c +++ b/libsylph/utils.c @@ -3875,16 +3875,15 @@ static gpointer execute_command_line_async_func(gpointer data) CmdData *cmd_data = (CmdData *)data; gchar **argv; - g_print("execute_command_line_async_func\n"); argv = strsplit_with_quote(cmd_data->cmdline, " ", 0); cmd_data->status = execute_sync(argv); g_strfreev(argv); - g_print("execute_command_line_async_func: exec done.\n"); + debug_print("execute_command_line_async_func: exec done: %s\n", + cmd_data->cmdline); cmd_data->flag = 1; g_main_context_wakeup(NULL); - g_print("execute_command_line_async_func: exiting\n"); return GINT_TO_POINTER(0); } @@ -3909,13 +3908,13 @@ gint execute_command_line_async_wait(const gchar *cmdline) if (!thread) return -1; - g_print("execute_command_line_async_wait: waiting thread\n"); + debug_print("execute_command_line_async_wait: waiting thread\n"); while (data.flag == 0) event_loop_iterate(); - g_print("execute_command_line_async_wait: flagged\n"); + debug_print("execute_command_line_async_wait: flagged\n"); g_thread_join(thread); - g_print("execute_command_line_async_wait: thread exited\n"); + debug_print("execute_command_line_async_wait: thread exited\n"); return data.status; } -- cgit v1.2.3