linux - Number of watched file descriptors inside a epoll -


i looking way check current number of file descriptors being monitored epoll instance. use following creating , populating epoll instance

epoll_create epoll_ctl 

platform gnu/linux.

as far know, there no system call available can provide count of file descriptors getting monitored epoll. can achieve maintaining 1 counter variable. increment/decrement variable after adding/removing file descriptor epoll using epoll_ctl().


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -