[gnome-builder] git: flush pending operations during shutdown to help valgrind
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] git: flush pending operations during shutdown to help valgrind
- Date: Thu, 6 May 2021 20:34:53 +0000 (UTC)
commit 9f4f5e0ab270716fb93a7e14559f1ce967d0be68
Author: Christian Hergert <chergert redhat com>
Date: Thu May 6 13:34:47 2021 -0700
git: flush pending operations during shutdown to help valgrind
src/plugins/git/daemon/test-git.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/plugins/git/daemon/test-git.c b/src/plugins/git/daemon/test-git.c
index 8200534fc..6c9b3129b 100644
--- a/src/plugins/git/daemon/test-git.c
+++ b/src/plugins/git/daemon/test-git.c
@@ -517,5 +517,8 @@ main (gint argc,
g_main_loop_run (main_loop);
+ while (g_main_context_pending (NULL))
+ g_main_context_iteration (NULL, FALSE);
+
return EXIT_SUCCESS;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]