]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix locking inside libc.
authorBruno Haible <bruno@clisp.org>
Tue, 24 Jul 2001 12:52:54 +0000 (12:52 +0000)
committerBruno Haible <bruno@clisp.org>
Sun, 28 Jun 2009 14:35:51 +0000 (16:35 +0200)
intl/ChangeLog
intl/dcigettext.c

index 0a72247b2a9b1394c3c0f1ba96f8fd450cc20ebb..fc384de4a322b22b13c54e7be3c0ad546092035a 100644 (file)
@@ -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.
index 8456550d03bb243928713b655342222370b82979..b7627bf611cd01abe9da98f7a5d8aed68599690f 100644 (file)
@@ -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