I am debugging an application on Linux. And it has a couple of threads that are periodically calling the select system call:
strace shows:
select(0, NULL, NULL, NULL, {1, 342414})
So nfds=0. I thought that nfds is the highest file descriptor number occurring in any of the sets readfds, writefds and exceptfds incremented by one. It cannot be standard input (fd=0), because this would then have nfds=1.
So what is the meaning of nfds=0 in this case?
Thanks!