diff options
author | Dom Lachowicz <domlachowicz@gmail.com> | 2003-08-26 00:40:35 +0000 |
---|---|---|
committer | Dom Lachowicz <domlachowicz@gmail.com> | 2003-08-26 00:40:35 +0000 |
commit | 5eca7c0792d789a474a1d4bfca08843ecc5a00ee (patch) | |
tree | a4e55b0936e160abff37ca56791f14365832c0e3 | |
parent | fa0720e0ffe7de7089a5e003a8ce61f2cc269010 (diff) | |
download | enchant-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.c | 9 |
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 */ } /** |