unixFdSourceNew

fun unixFdSourceNew(fd: Int, condition: IOCondition): Source

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.

Return

the newly created #GSource

Since

2.36

Parameters

fd

a file descriptor

condition

IO conditions to watch for on @fd