1

Does the kernel delete open files when a process dies

view story
linux-howto

http://stackoverflow.com – I am using tmpnam() to generate a temp file name in process 1. Opening that file and sending the file name to another process 2. The other process 2 opens and writes into that file. But, simply I want to know if my process 1 dies, will the file be removed by the OS. Doesnt look like this is happening. In that case, what are my options so that I don't have a file hanging around after my process 1 dies. (HowTos)