guint g_unix_fd_add ( gint fd, GIOCondition condition, GUnixFDSourceFunc function, gpointer user_data )
Sets a function to be called when the IO condition, as specified by
condition becomes true for
function will be called when the specified IO condition becomes
TRUE. The function is expected to clear whatever event caused the
IO condition to become true and return
TRUE in order to be notified
when it happens again. If
FALSE then the watch
will be cancelled.
The return value of this function can be passed to
to cancel the watch at any time that it exists.
The source will never close the fd — you must do it yourself.
Available since: 2.36
This function is not directly available to language bindings.