GLibUnix.Pipe

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 GLibUnix.PipeEnd.READ is readable. The file descriptor with index GLibUnix.PipeEnd.WRITE is writable.

Methods

None

Details

class GLibUnix.Pipe

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.