0

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?

wuwl
  • 481
  • 1
  • 5
  • 10

1 Answers1

2

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.

Vlad
  • 8,407
  • 4
  • 39
  • 60