The kqueue() system call fails if: [ENOMEM] The kernel failed to allocate enough memory for the kernel queue. [EMFILE] The per-process descriptor table is full. [ENFILE] The system file table is full.