I use select() to wait for input from a resource manager. When no input data is available, select() blocks (SIGWAITINFO). When then the resource manager terminates (intentional or crashed) then select() does NOT come back with an EBADF - it stays blocked forever! What can I do?
Timeout is polling, which is not the way QNX works. Resource manager side cleanup is a better idea but it doesn’t work in some cases, e.g. when resource manager dies from a SIGKILL or second SIGSEGV.
My question is: Is that behaviour of select() intentional? Or is it simply a bug in the QNX?