It will close them as well. Although core dump abruptly terminates the program, the OS can still perform all normal clean-up routines it would do if the program terminated correctly.
if a linux program exit with coredump, the unclosed files may lead a resource leak
-
21-07-2023 - |
Question
As we know, the os will clean up any allocated memory after the program exited. but how about the opened or created files after coredump?
La solution
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow