summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libc/stdlib/atexit.38
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libc/stdlib/atexit.3 b/src/lib/libc/stdlib/atexit.3
index c8d4ce63d5..0af10cfe81 100644
--- a/src/lib/libc/stdlib/atexit.3
+++ b/src/lib/libc/stdlib/atexit.3
@@ -29,7 +29,7 @@
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
31.\" 31.\"
32.\" $OpenBSD: atexit.3,v 1.5 2003/06/02 20:18:37 millert Exp $ 32.\" $OpenBSD: atexit.3,v 1.6 2005/08/06 18:43:23 deraadt Exp $
33.\" 33.\"
34.Dd June 29, 1991 34.Dd June 29, 1991
35.Dt ATEXIT 3 35.Dt ATEXIT 3
@@ -54,6 +54,12 @@ Functions so registered are called in reverse order;
54no arguments are passed. 54no arguments are passed.
55At least 32 functions can always be registered, 55At least 32 functions can always be registered,
56and more are allowed as long as sufficient memory can be allocated. 56and more are allowed as long as sufficient memory can be allocated.
57.Pp
58.Fn atexit
59is very difficult to use correctly without creating
60.Xr exit 3 Ns -time
61races.
62Unless absolutely neccessary, please avoid using it.
57.Sh RETURN VALUES 63.Sh RETURN VALUES
58.Rv -std atexit 64.Rv -std atexit
59.Sh ERRORS 65.Sh ERRORS