diff options
author | 2005-08-06 18:43:23 +0000 | |
---|---|---|
committer | 2005-08-06 18:43:23 +0000 | |
commit | 63bdc04a64149c9cfe0a63a3ea4fc0f90512cba1 (patch) | |
tree | 2fbfab9a553544b8581b2ae258f55883a5645849 /lib/libc | |
parent | use perfect options for actual floppy newfs (diff) | |
download | wireguard-openbsd-63bdc04a64149c9cfe0a63a3ea4fc0f90512cba1.tar.xz wireguard-openbsd-63bdc04a64149c9cfe0a63a3ea4fc0f90512cba1.zip |
tell people that atexit is bad; ok jmc
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/stdlib/atexit.3 | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libc/stdlib/atexit.3 b/lib/libc/stdlib/atexit.3 index c8d4ce63d51..0af10cfe815 100644 --- a/lib/libc/stdlib/atexit.3 +++ b/lib/libc/stdlib/atexit.3 @@ -29,7 +29,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: atexit.3,v 1.5 2003/06/02 20:18:37 millert Exp $ +.\" $OpenBSD: atexit.3,v 1.6 2005/08/06 18:43:23 deraadt Exp $ .\" .Dd June 29, 1991 .Dt ATEXIT 3 @@ -54,6 +54,12 @@ Functions so registered are called in reverse order; no arguments are passed. At least 32 functions can always be registered, and more are allowed as long as sufficient memory can be allocated. +.Pp +.Fn atexit +is very difficult to use correctly without creating +.Xr exit 3 Ns -time +races. +Unless absolutely neccessary, please avoid using it. .Sh RETURN VALUES .Rv -std atexit .Sh ERRORS |