Skip to main content

init

Function init 

Source
pub fn init() -> Result<Fd, CoreError>
Expand description

Create a non-blocking close-on-exec inotify file descriptor.

The descriptor is created with IN_CLOEXEC and IN_NONBLOCK set.

§Fork Safety

The descriptor is O_CLOEXEC and will be closed in the child after exec.

§Errors

  • EMFILE: Process limit on open file descriptors hit.
  • ENFILE: System-wide limit on open files hit.
  • ENOMEM: Insufficient kernel memory.