diff options
author | 1999-06-15 00:07:39 +0000 | |
---|---|---|
committer | 1999-06-15 00:07:39 +0000 | |
commit | a9cea9a366db5a2ad219f685426547e80c67470c (patch) | |
tree | 4c8ace29dfe8121d6d9cab9d05a69698ac5d6665 /lib/libpthread/man | |
parent | mention the process' pid in the debug message. greatly helps to debug problems when fork()ing (diff) | |
download | wireguard-openbsd-a9cea9a366db5a2ad219f685426547e80c67470c.tar.xz wireguard-openbsd-a9cea9a366db5a2ad219f685426547e80c67470c.zip |
Remove pthread_atfork(). It was only part of draft 10 for a little while and was removed before stddization.
Diffstat (limited to 'lib/libpthread/man')
-rw-r--r-- | lib/libpthread/man/Makefile.inc | 6 | ||||
-rw-r--r-- | lib/libpthread/man/pthread_atfork.3 | 68 |
2 files changed, 3 insertions, 71 deletions
diff --git a/lib/libpthread/man/Makefile.inc b/lib/libpthread/man/Makefile.inc index 55b37d24f48..c51d8ad23cc 100644 --- a/lib/libpthread/man/Makefile.inc +++ b/lib/libpthread/man/Makefile.inc @@ -1,11 +1,11 @@ -# $Id: Makefile.inc,v 1.5 1999/03/24 00:46:23 d Exp $ -# $OpenBSD: Makefile.inc,v 1.5 1999/03/24 00:46:23 d Exp $ +# $Id: Makefile.inc,v 1.6 1999/06/15 00:07:40 d Exp $ +# $OpenBSD: Makefile.inc,v 1.6 1999/06/15 00:07:40 d Exp $ # POSIX thread man files .PATH: ${.CURDIR}/man -MAN+= pthread_atfork.3 \ +MAN+= \ pthread_cleanup_pop.3 \ pthread_cleanup_push.3 \ pthread_cond_broadcast.3 \ diff --git a/lib/libpthread/man/pthread_atfork.3 b/lib/libpthread/man/pthread_atfork.3 deleted file mode 100644 index 1e56409ce51..00000000000 --- a/lib/libpthread/man/pthread_atfork.3 +++ /dev/null @@ -1,68 +0,0 @@ -.Dd January 17, 1999 -.Dt PTHREAD_ATFORK 3 -.Os -.Sh NAME -.Nm pthread_atfork -.Nd specify handler functions to call when the process forks -.Sh SYNOPSIS -.Fd #include <pthread.h> -.Ft int -.Fn pthread_atfork "void (*prepare)(void)" "void (*parent)(void)" "void (*child)(void)" -.Sh DESCRIPTION -The -.Fn pthread_atfork -function declares fork handlers to be called before and after -.Fn fork , -in the context of the thread that called -.Fn fork . -The -.Fa prepare -fork handler will be called before -.Fn fork -processing commences. The -.Fa parent -fork handler will be called after -.Fn fork -prcessing completes in the parent process. The -.Fa child -fork handler will be called after -.Fn fork -processing completes in the child process. If no handling is desired at -one or more of these three points, the correspoding fork handler -address(es) may be set to -.Dv NULL . -.Pp -The order of calls to -.Fn pthread_atfork -is significant. The -.Fa parent -and -.Fa child -fork handlers will be called in the order in which they were established -by calls to -.Fn pthread_atfork . -The -.Fa prepare -fork handlers will be called in the opposite order. -.Sh RETURN VALUES -Upon successful completion, -.Fn pthread_atfork -will return a value of zero. Otherwise, an error number will be -returned to indicate the error. -.Sh ERRORS -.Fn pthread_atfork -will fail if: -.Bl -tag -width Er -.It Bq Er ENOMEM -Insufficient table space exists to record the fork handler addresses. -None of the handler lists are modified. -.El -.Pp -.Sh SEE ALSO -.Xr fork 2 , -.Xr atexit 3 -.Sh STANDARDS -.Fn pthread_atfork -conforms to ISO/IEC 9945-1 ANSI/IEEE -.Pq Dq Tn POSIX -Std 1003.1 Second Edition 1996-07-12. |