Closed Martins3 closed 3 years ago
One way to do that is to always open files using the flag O_CLOEXEC, which ensures that this file descriptor is automatically closed when exec...() is ever called. [^1]
All the memory freed, that's what we expected.
https://stackoverflow.com/questions/6125068/what-does-the-fd-cloexec-fcntl-flag-do
MIPS doesn't use it.
These function called by KVM module, they should be carefully called properly.
It works.
Although dune can't make the program which is a parameter of syscall exec run in a virtualization environment, making the program run correctly without too many limitations is always better.