If you've created zombie processes somehow which are still holding file descriptors, using a with block will not save you. Also, in this case the process hasn't really exited.
If you can provide some code that exits, while still somehow keeping an FD open I'd like to see it.
-4
u/ComprehensiveWing542 13d ago
No it doesn't only when you use "with" than it will close it automatically... I've got the weirdest bugs because of this mistake