summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hofmann <scm@uninformativ.de>2014-06-21 09:18:36 +0200
committerPeter Hofmann <scm@uninformativ.de>2014-06-21 09:20:24 +0200
commit443a493bac6bac44d431faf327423c5f475b5cff (patch)
treedd2053833168b8ccfa6c6c625a0be93a57bd01c1
parenta6b19f00b57dcf987b423b5ec0f5c26bdb0e6115 (diff)
downloadlariza-443a493bac6bac44d431faf327423c5f475b5cff.tar.gz
Always close tabbed's stdout when finished reading
-rw-r--r--browser.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/browser.c b/browser.c
index 3f2ee39..f0e6332 100644
--- 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);