[gnome-builder] rustup: ensure master fd gets closed
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] rustup: ensure master fd gets closed
- Date: Sun, 19 Mar 2017 13:21:10 +0000 (UTC)
commit fa728a86f7687ea64f0bc427aa438e84a249cd79
Author: Christian Hergert <chergert redhat com>
Date: Sun Mar 19 06:21:01 2017 -0700
rustup: ensure master fd gets closed
Someone has to close the PTY fd, so might as well be the stream we assign
it to.
plugins/rustup/rustup_plugin/__init__.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/rustup/rustup_plugin/__init__.py b/plugins/rustup/rustup_plugin/__init__.py
index 5a05458..8b7171f 100644
--- a/plugins/rustup/rustup_plugin/__init__.py
+++ b/plugins/rustup/rustup_plugin/__init__.py
@@ -318,7 +318,7 @@ class RustupInstaller(Ide.Transfer):
launcher.take_stdout_fd(os.dup(slave_fd))
launcher.take_stderr_fd(slave_fd)
- data_stream = Gio.DataInputStream.new(Gio.UnixInputStream.new(master_fd, False))
+ data_stream = Gio.DataInputStream.new(Gio.UnixInputStream.new(master_fd, True))
# set it to ANY so the progress bars can be parsed
data_stream.set_newline_type(Gio.DataStreamNewlineType.ANY)
data_stream.read_line_async(GLib.PRIORITY_DEFAULT, cancellable, self._read_line_cb, cancellable)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]