File Deletion in an Os/2 Environment With Multiple Processes Opening the Same File
Original Publication Date: 1989-Apr-01
Included in the Prior Art Database: 2005-Jan-27
Disclosed is a process for handling file deletions when multiple processes may open the same file. This procedure causes the file to be deleted even after a power off/power on condition. In one embodiment, a Buffer Pool Services (BPS) routine keeps track of the number of opens for each of its opened files in its file descriptor array kept in shared memory. Using this information, when the delete request is received and after all RAM resident buffers for the file have been purged, BPS does the following: (1) If the file is not opened by any process, BPS deletes the file. (2) If the file is only opened by the current process, BPS closes the file, and then deletes the file.