diff --git a/man/sd_event_add_io.xml b/man/sd_event_add_io.xml index 4f2b09bf59..398b938e3c 100644 --- a/man/sd_event_add_io.xml +++ b/man/sd_event_add_io.xml @@ -161,6 +161,12 @@ "floating", and will be destroyed implicitly when the event loop itself is destroyed. + Note that this call does not take possession of the file descriptor passed in, ownership (and thus + the duty to close it when it is no longer needed) remains with the caller. However, with the + sd_event_source_set_io_fd_own() call (see below) the event source may optionally + take ownership of the file descriptor after the event source has been created. In that case the file + descriptor is closed automatically as soon as the event source is released. + It is recommended to use sd_event_add_io() only in conjunction with file descriptors that have O_NONBLOCK set, to