title: Linux create and remove file from always-on application
body: <p>I'm writing in Linux an always on service that opens and writes to file in /tmp, and then should remove file.<br>
  I see that space isn't freed from /tmp/ after the process removes the file although the file itself doesn't exist. When I did lsof I see this file is marked as (deleted):<br>
  1381    /mnt/unlink     /tmp/mest_elf (deleted)</p>
  
  <p>I read that I for this space to be freed I have to kill my process, but I can't because I need it to run always.  </p>
  
  <p>Questions:<br>
  1. I'm using posix remove()\unlink() functions. is there any other function that totally removes files?<br>
  2. is there a way to remove am lsof file?<br>
  3. any other suggestion to me? (remember that I have to write it in c application)  </p>
  
  <p>Thanks.</p>