UnixFDMessage.appendFd

Adds a file descriptor to @message.

The file descriptor is duplicated using dup(). You keep your copy of the descriptor and the copy contained in @message will be closed when @message is finalized.

A possible cause of failure is exceeding the per-process or system-wide file descriptor limit.

class UnixFDMessage
bool
appendFd
(
int fd
)

Parameters

fd int

a valid open file descriptor

Return Value

Type: bool

%TRUE in case of success, else %FALSE (and @error is set)

Throws

GException on failure.

Meta

Since

2.22