summaryrefslogtreecommitdiffstats
path: root/intl
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2001-06-14 14:47:58 +0000
committerBruno Haible <bruno@clisp.org>2001-06-14 14:47:58 +0000
commit66662c6480489904c87b8dc569dae3cbb2589b05 (patch)
tree1975f8d2af237df1b66231768692462ee71da718 /intl
parent4d31d28192b52704791f4f3f17bfb8f216f6b5cd (diff)
downloadexternal_gettext-66662c6480489904c87b8dc569dae3cbb2589b05.zip
external_gettext-66662c6480489904c87b8dc569dae3cbb2589b05.tar.gz
external_gettext-66662c6480489904c87b8dc569dae3cbb2589b05.tar.bz2
Fix locking inside libc.
Diffstat (limited to 'intl')
-rw-r--r--intl/ChangeLog4
-rw-r--r--intl/dcigettext.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/intl/ChangeLog b/intl/ChangeLog
index 0a72247..fc384de 100644
--- a/intl/ChangeLog
+++ b/intl/ChangeLog
@@ -1,3 +1,7 @@
+2001-06-12 Bruno Haible <haible@clisp.cons.org>
+
+ * dcigettext.c (DCIGETTEXT): Release the lock before returning.
+
2001-04-30 Bruno Haible <haible@clisp.cons.org>
Silence "gcc -Wall -Wwrite-strings" warnings.
diff --git a/intl/dcigettext.c b/intl/dcigettext.c
index 8456550..b7627bf 100644
--- a/intl/dcigettext.c
+++ b/intl/dcigettext.c
@@ -517,6 +517,7 @@ DCIGETTEXT (domainname, msgid1, msgid2, plural, n, category)
/* We cannot get the current working directory. Don't signal an
error but simply return the default string. */
FREE_BLOCKS (block_list);
+ __libc_rwlock_unlock (_nl_state_lock);
__set_errno (saved_errno);
return (plural == 0
? (char *) msgid1