Quantcast
Channel: User Kamil Maciorowski - Super User
Viewing all articles
Browse latest Browse all 837

Comment by Kamil Maciorowski on Possible to create temp file without write back on close?

$
0
0
Does this happen even if you remove the file? I mean if the program is well written then it will open the file just once and it won't expect the pathname to exist later; so you can unlink the file before the program exits and the program will still use it. When the program exits, it closes the file and the OS knows the data can be truly removed from the filesystem. I did not test this, but maybe Linux is smart enough not to dump the cache in vain to an already deleted file no longer in use. Can you test this scenario with your program?

Viewing all articles
Browse latest Browse all 837

Trending Articles