In an RTOS, where you have multiple networking applications (which would
typically be their own processes on Linux) but each are simply threads in
the same process space, now a thread’s first call to socket() could return
an FD larger than what FD_SETSIZE can hold rather than 0. This would
require modifying all applications to expect FDs that couldn’t fit within
fd_set even when they are only using a small number of sockets
That's really bad, and I don't know how to solve it, Does anyone here
have any ideas?