unixFdSourceNew

Creates a #GSource to watch for a particular I/O condition on a file descriptor.

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

Any callback attached to the returned #GSource must have type #GUnixFDSourceFunc.

Parameters

fd int

a file descriptor

condition glib.types.IOCondition

I/O conditions to watch for on fd

Return Value

Type: glib.source.Source

the newly created #GSource