UnixPipe

Added in version 2.80.

class UnixPipe(*args, **kwargs)

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

class UnixPipe
fds

A pair of file descriptors, each negative if closed or not yet opened. The file descriptor with index READ is readable. The file descriptor with index WRITE is writable.