2 ms·
Wrong title: it was not python, it was third-party “daemon” package. Closing random file descriptors in complex systems is extremely dangerous practice, and I
by theamk 6y ago
Wrong title: it was not python, it was third-party “daemon” package.
Closing random file descriptors in complex systems is extremely dangerous practice, and I had to debug the same bugs in C++ programs as well.
(The ancient advice to close all file descriptors on demonization only applies to simpler programs where the programmer knows each file descriptor used. Once third-party libraries come into play, this is no longer safe)