| remove file handle fails on SLES All,
I am trying to debug an issue in my code. Here is what I am doing. I have a process A which runs continuously till I ask it to stop.
Inside A I do the following:
- mount partition /dev/sda1
-open() // creates an empty file X
-write() // write some bytes to it
-close() // close the file
-processFile() // Perform some operation
-remove() // remove file
-umount /dev/sda1
When I do lsof | grep A it shows the file handle of X being owned by it. This prevents me from umountinting the partition. Why is this happening and how can get around this issue?
Thanks
vtirum |