|
NAMEpthread_atfork —
register fork handlers
LIBRARYPOSIX Threads Library (libpthread, -lpthread)SYNOPSIS#include <pthread.h>
int
DESCRIPTIONThepthread_atfork () function declares fork handlers to
be called before and after
fork(2), in
the context of the thread that called
fork(2).
The handlers registered with
If no handling is desired at one or more of these three points, a null pointer may be passed as the corresponding fork handler. RETURN VALUESIf successful, thepthread_atfork () function will return
zero. Otherwise an error number will be returned to indicate the error.
ERRORSThepthread_atfork () function will fail if:
SEE ALSOfork(2), pthread(3)STANDARDSThepthread_atfork () function is expected to conform to
IEEE Std 1003.1 (“POSIX.1”).
AUTHORSThis manpage was written by Alex Vasylenko <lxv@omut.org>.
Visit the GSP FreeBSD Man Page Interface. |