Index: athena/lib/locker/attachtab.c =================================================================== RCS file: /afs/dev.mit.edu/source/repository/athena/lib/locker/attachtab.c,v retrieving revision 1.10 diff -u -r1.10 attachtab.c --- attachtab.c 1999/11/23 20:05:47 1.10 +++ attachtab.c 2001/11/26 22:41:50 @@ -391,6 +391,9 @@ /* Sort the entries. */ qsort(files, nfiles, sizeof(*files), compare_locker__dirents); + /* Unlock the attachtab directory, since callbacks might take a while. */ + unlock_attachtab(context, &lock); + /* Now run through the callbacks. */ for (i = 0; i < nfiles; i++) { @@ -409,7 +412,6 @@ free(files[i].name); free(files); - unlock_attachtab(context, &lock); return status; }