Ticket #3432: 3432-dont_expire_vfs_with_open_files.diff

File 3432-dont_expire_vfs_with_open_files.diff, 537 bytes (added by andrew_b, 8 years ago)

A step to fix.

  • lib/vfs/gc.c

    diff --git a/lib/vfs/gc.c b/lib/vfs/gc.c
    index aff52f4..72d9308 100644
    a b vfs_expire (gboolean now) 
    264264 
    265265    for (stamp = stamps; stamp != NULL;) 
    266266    { 
    267         if (now || (timeoutcmp (&stamp->time, &lc_time))) 
     267        if (now 
     268            || (timeoutcmp (&stamp->time, &lc_time) != 0 
     269                && (stamp->v->nothingisopen == NULL 
     270                    || stamp->v->nothingisopen (stamp->id) != 0))) 
    268271        { 
    269272            st = stamp->next; 
    270273            if (stamp->v->free)