Union FS. Correct some handling when the last file is closed
This commit is contained in:
parent
597493221e
commit
884f3cdf74
@ -791,7 +791,7 @@ static int unionfs_close(FAR struct file *filep)
|
||||
* unlinked, then destroy the file system now.
|
||||
*/
|
||||
|
||||
if (--ui->ui_nopen <= 0)
|
||||
if (--ui->ui_nopen <= 0 && ui->ui_unhooked)
|
||||
{
|
||||
unionfs_destroy(ui);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user