:right-sidebar: True UnixPipe =================================================================== .. currentmodule:: gi.repository.GLib .. versionadded:: 2.80 .. class:: UnixPipe(*args, **kwargs) :no-contents-entry: A Unix pipe. The advantage of this type over ``int[2]`` is that it can be closed automatically when it goes out of scope, using ``g_auto(GUnixPipe)``\, on compilers that support that feature. Fields ------ .. rst-class:: interim-class .. class:: UnixPipe :no-index: .. attribute:: fds A pair of file descriptors, each negative if closed or not yet opened. The file descriptor with index :const:`~gi.repository.GLib.UnixPipeEnd.READ` is readable. The file descriptor with index :const:`~gi.repository.GLib.UnixPipeEnd.WRITE` is writable.