diff options
author | deraadt <> | 2005-08-06 18:43:23 +0000 |
---|---|---|
committer | deraadt <> | 2005-08-06 18:43:23 +0000 |
commit | 7ba2c88bf7980dfeb0f3814b69003ba150ea2a14 (patch) | |
tree | b91a9951ce5e6836225f6bfe868100070c74311f | |
parent | 2e3c1db084184ed257e1a4c2c586e2c84f934879 (diff) | |
download | openbsd-7ba2c88bf7980dfeb0f3814b69003ba150ea2a14.tar.gz openbsd-7ba2c88bf7980dfeb0f3814b69003ba150ea2a14.tar.bz2 openbsd-7ba2c88bf7980dfeb0f3814b69003ba150ea2a14.zip |
tell people that atexit is bad; ok jmc
-rw-r--r-- | src/lib/libc/stdlib/atexit.3 | 8 |
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; | |||
54 | no arguments are passed. | 54 | no arguments are passed. |
55 | At least 32 functions can always be registered, | 55 | At least 32 functions can always be registered, |
56 | and more are allowed as long as sufficient memory can be allocated. | 56 | and more are allowed as long as sufficient memory can be allocated. |
57 | .Pp | ||
58 | .Fn atexit | ||
59 | is very difficult to use correctly without creating | ||
60 | .Xr exit 3 Ns -time | ||
61 | races. | ||
62 | Unless 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 |