PHP - Inotify queue_len() Function

inotify_queue_len() function can return a number upper than zero if there are pending events.


int inotify_queue_len( resource $inotify_instance )

inotify_queue_len() function can allow us to know if inotify_read() can block or not. If a number upper than zero is returned, there are pending events, and inotify_read() can't block.

Kickstart Your Career

Get certified by completing the course

Get Started