lseek/write suddenly returns -1 with errno = 9 (Bad file descriptor)
I don’t know what type of setup you have, but the following scenario, could I think produce such an effect (or else one similar to it). I have not tested this to verify, so please take it with a grain of salt. If the file/device you are opening implemented as a server application (eg NFS), … Read more