Changeset 2821
- Timestamp:
- Dec 23, 2004, 5:16:14 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/libohana/src/glockfile.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libohana/src/glockfile.c
r2413 r2821 45 45 } 46 46 47 /* clears lock. removes hardlock even if file pointer is not supplied */ 47 48 int fclearlockfile (char *filename, FILE *f, int type, int *state) { 48 49 49 50 int fd, status; 50 51 51 fflush (f); 52 fd = fileno (f); 52 fd = -1; 53 if (f != NULL) { 54 fflush (f); 55 fd = fileno (f); 56 } 53 57 status = clearlockfile2 (filename, fd, type, state); 54 fclose (f);58 if (f != NULL) fclose (f); 55 59 return (status); 56 60 }
Note:
See TracChangeset
for help on using the changeset viewer.
