summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDom Lachowicz <domlachowicz@gmail.com>2003-08-26 00:40:35 +0000
committerDom Lachowicz <domlachowicz@gmail.com>2003-08-26 00:40:35 +0000
commit5eca7c0792d789a474a1d4bfca08843ecc5a00ee (patch)
treea4e55b0936e160abff37ca56791f14365832c0e3
parentfa0720e0ffe7de7089a5e003a8ce61f2cc269010 (diff)
downloadenchant-5eca7c0792d789a474a1d4bfca08843ecc5a00ee.tar.gz
file locking, documenting
git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@20817 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
-rw-r--r--src/enchant.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/enchant.c b/src/enchant.c
index f478181..d76422a 100644
--- a/src/enchant.c
+++ b/src/enchant.c
@@ -34,7 +34,7 @@
#if HAVE_FLOCK || HAVE_LOCKF
#include <sys/file.h>
-#endif /* HAVE_FLOCK */
+#endif /* HAVE_FLOCK || HAVE_LOCKF */
#include <glib.h>
#include <gmodule.h>
@@ -52,7 +52,7 @@ enchant_lock_file (FILE * f)
#elif HAVE_LOCKF
lockf (fileno (f), F_LOCK, 0);
#else
- /* TODO: win32, UNIX fcntl */
+ /* TODO: win32, UNIX fcntl. This race condition probably isn't too bad. */
#endif /* HAVE_FLOCK */
}
@@ -64,7 +64,7 @@ enchant_unlock_file (FILE * f)
#elif HAVE_LOCKF
lockf (fileno (f), F_ULOCK, 0);
#else
- /* TODO: win32, UNIX fcntl */
+ /* TODO: win32, UNIX fcntl. This race condition probably isn't too bad. */
#endif /* HAVE_FLOCK */
}
@@ -867,7 +867,8 @@ enchant_broker_release_dict (EnchantBroker * broker, EnchantDict * dict)
g_return_if_fail (broker);
g_return_if_fail (dict);
- /* this will be a noop for now, perhaps indefinitely */
+ /* we currently don't really release the dictionary until
+ the broker is shutdown due to possible race conditions */
}
/**