diff options
author | Peter Hofmann <scm@uninformativ.de> | 2014-06-21 09:18:36 +0200 |
---|---|---|
committer | Peter Hofmann <scm@uninformativ.de> | 2014-06-21 09:20:24 +0200 |
commit | 443a493bac6bac44d431faf327423c5f475b5cff (patch) | |
tree | dd2053833168b8ccfa6c6c625a0be93a57bd01c1 | |
parent | a6b19f00b57dcf987b423b5ec0f5c26bdb0e6115 (diff) | |
download | lariza-443a493bac6bac44d431faf327423c5f475b5cff.tar.gz |
Always close tabbed's stdout when finished reading
-rw-r--r-- | browser.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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); |