diff close.cpp @ 590:4eedc18634f5

Use _locking() to emulate fcntl() locks This is a rather terrible emulation; _locking() doesn't support nonexclusive locks, and also doesn't document any useful return codes. Oh well; it's a start.
author mas01cr
date Tue, 11 Aug 2009 21:42:18 +0000
parents cc2b97d020b1
children b1723ae7675e
line wrap: on
line diff
--- a/close.cpp	Tue Aug 11 21:42:13 2009 +0000
+++ b/close.cpp	Tue Aug 11 21:42:18 2009 +0000
@@ -13,6 +13,7 @@
   if(adb->cached_lsh) {
     delete adb->cached_lsh;
   }
+  divest_lock(adb->fd);
   close(adb->fd);
   free(adb);
 }