GLib.UnixPipe

Fields

Name

Type

Access

Description

fds

[int]

r/w

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

Methods

None

Details

class GLib.UnixPipe

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.

New in version 2.80.