UnixUtils.fdSourceNew

Creates a #GSource to watch for a particular IO condition on a file descriptor.

The source will never close the fd -- you must do it yourself.

struct UnixUtils
static
fdSourceNew

Parameters

fd int

a file descriptor

condition GIOCondition

IO conditions to watch for on @fd

Return: the newly created #GSource

Meta

Since

2.36