From 91bdd0dcbd989e22867b8d809ee2cf3d8e192fd1 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Mon, 22 Jun 2015 12:07:36 -0400 Subject: [PATCH] add technically required (no-op) g_spawn_close_pid --- termite.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/termite.cc b/termite.cc index 584c8db..956ec38 100644 --- a/termite.cc +++ b/termite.cc @@ -209,12 +209,13 @@ void launch_browser(char *browser, char *url) { return; } - g_spawn_async(nullptr, browser_cmd, nullptr, G_SPAWN_SEARCH_PATH, - nullptr, nullptr, nullptr, &error); - if (error) { + GPid child_pid; + if (!g_spawn_async(nullptr, browser_cmd, nullptr, G_SPAWN_SEARCH_PATH, + nullptr, nullptr, &child_pid, &error)) { g_printerr("error launching '%s': %s\n", browser, error->message); g_error_free(error); } + g_spawn_close_pid(child_pid); } static void set_size_hints(GtkWindow *window, int char_width, int char_height) {