From 443a493bac6bac44d431faf327423c5f475b5cff Mon Sep 17 00:00:00 2001 From: Peter Hofmann Date: Sat, 21 Jun 2014 09:18:36 +0200 Subject: Always close tabbed's stdout when finished reading --- browser.c | 4 +--- 1 file changed, 1 insertion(+), 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); -- cgit v1.2.3