From: "wangjianjian (C)" <wangjianjian3@huawei.com>
To: "musl@lists.openwall.com" <musl@lists.openwall.com>
Cc: "Songyunlong (Euler)" <yunlong.song@huawei.com>
Subject: [musl] [PATCH] atexit: Unlock after executing exit functions
Date: Thu, 2 Apr 2020 03:56:58 +0000 [thread overview]
Message-ID: <e45b2f4e2706483f94012f5a69e540b8@huawei.com> (raw)
From 0bf59dbec10f1267419696ee5b3aa9ace1379ee2 Mon Sep 17 00:00:00 2001
From: Wang Jianjian <wangjianjian3@huawei.com>
Date: Thu, 2 Apr 2020 11:51:13 +0800
Subject: [PATCH] atexit: Unlock after executing exit functions
Signed-off-by: Wang Jianjian <wangjianjian3@huawei.com>
---
src/exit/atexit.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/exit/atexit.c b/src/exit/atexit.c
index 160d277a..d30db5df 100644
--- a/src/exit/atexit.c
+++ b/src/exit/atexit.c
@@ -27,6 +27,7 @@ void __funcs_on_exit()
func(arg);
LOCK(lock);
}
+ UNLOCK(lock);
}
void __cxa_finalize(void *dso)
--
2.17.1
next reply other threads:[~2020-04-02 3:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-02 3:56 wangjianjian (C) [this message]
2020-04-02 15:08 ` Rich Felker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e45b2f4e2706483f94012f5a69e540b8@huawei.com \
--to=wangjianjian3@huawei.com \
--cc=musl@lists.openwall.com \
--cc=yunlong.song@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).