]> git.armaanb.net Git - chorizo.git/commitdiff
Always close tabbed's stdout when finished reading
authorPeter Hofmann <scm@uninformativ.de>
Sat, 21 Jun 2014 07:18:36 +0000 (09:18 +0200)
committerPeter Hofmann <scm@uninformativ.de>
Sat, 21 Jun 2014 07:20:24 +0000 (09:20 +0200)
browser.c

index 3f2ee39757c2269013e39b8c81809a30ba7e40e6..f0e6332412b721390888e898cf6674b60c6b9acb 100644 (file)
--- a/browser.c
+++ b/browser.c
@@ -905,14 +905,12 @@ tabbed_launch(void)
                return 0;
        }
        g_io_channel_read_line(tabbed_stdout_channel, &output, NULL, NULL, NULL);
+       g_io_channel_shutdown(tabbed_stdout_channel, FALSE, NULL);
        if (output == NULL)
        {
                fprintf(stderr, __NAME__": Could not read XID from tabbed\n");
                return 0;
        }
-
-       g_io_channel_shutdown(tabbed_stdout_channel, FALSE, NULL);
-
        g_strstrip(output);
        plug_into = strtol(output, NULL, 16);
        g_free(output);