append_fd


Description:

public bool append_fd (int fd) throws Error

Adds a file descriptor to this.

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

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

Parameters:

this

a UnixFDMessage

fd

a valid open file descriptor

Returns:

true in case of success, else false (and throws is set)