summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorxtraeme <xtraeme@NetBSD.org>2008-02-25 14:15:10 +0000
committerxtraeme <xtraeme@NetBSD.org>2008-02-25 14:15:10 +0000
commit1b5143aa5daee4a8a5d33379dcd3776e81a8fe40 (patch)
tree75a3975c56ed0e0e403aab3b3ac644d26a9d79b8 /lib/libc/stdlib
parent95157b046ee70cf860a961d9f2be1a95b1b0a2eb (diff)
Add a comment for __libc_atexit_init() missed in previous that was
available in the original patch.
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/atexit.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libc/stdlib/atexit.c b/lib/libc/stdlib/atexit.c
index a9c38b07220..cd8eea4e7fa 100644
--- a/lib/libc/stdlib/atexit.c
+++ b/lib/libc/stdlib/atexit.c
@@ -1,4 +1,4 @@
-/* $NetBSD: atexit.c,v 1.20 2008/02/25 14:06:13 xtraeme Exp $ */
+/* $NetBSD: atexit.c,v 1.21 2008/02/25 14:15:10 xtraeme Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: atexit.c,v 1.20 2008/02/25 14:06:13 xtraeme Exp $");
+__RCSID("$NetBSD: atexit.c,v 1.21 2008/02/25 14:15:10 xtraeme Exp $");
#endif /* LIBC_SCCS and not lint */
#include "reentrant.h"
@@ -120,6 +120,10 @@ atexit_handler_alloc(void *dso)
return (ah);
}
+/*
+ * Initialize atexit_mutex with the PTHREAD_MUTEX_RECURSIVE attribute.
+ * Note that __cxa_finalize may generate calls to __cxa_atexit.
+ */
void
__libc_atexit_init(void)
{