Linux cpanel.rrshost.in 5.15.0-25-generic #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 x86_64
Apache
: 109.123.238.221 | : 172.69.6.203
128 Domain
8.2.28
aev999
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
src /
glibc /
debian /
local /
manpages /
[ HOME SHELL ]
Name
Size
Permission
Action
de
[ DIR ]
drwxr-xr-x
es
[ DIR ]
drwxr-xr-x
fr
[ DIR ]
drwxr-xr-x
id
[ DIR ]
drwxr-xr-x
pl
[ DIR ]
drwxr-xr-x
po
[ DIR ]
drwxr-xr-x
Makefile
384
B
-rw-r--r--
gencat.1
5.59
KB
-rw-r--r--
getconf.1
5.29
KB
-rw-r--r--
locale-gen.8
2.91
KB
-rw-r--r--
locale-gen.8.sgml
4.58
KB
-rw-r--r--
locale.alias.5
1.67
KB
-rw-r--r--
locale.gen.5
1.41
KB
-rw-r--r--
nscd.8
1.99
KB
-rw-r--r--
nscd.conf.5
6.09
KB
-rw-r--r--
po4a.cfg
338
B
-rw-r--r--
pthread_atfork.3
1.98
KB
-rw-r--r--
pthread_cond_init.3
7.23
KB
-rw-r--r--
pthread_condattr_init.3
1.24
KB
-rw-r--r--
pthread_key_create.3
4.88
KB
-rw-r--r--
pthread_mutex_init.3
7.06
KB
-rw-r--r--
pthread_mutexattr_init.3
3.14
KB
-rw-r--r--
pthread_mutexattr_setkind_np.3
1.02
KB
-rw-r--r--
pthread_once.3
979
B
-rw-r--r--
rpcgen.1
11.07
KB
-rw-r--r--
sotruss.1
1.47
KB
-rw-r--r--
tzselect.1
2.28
KB
-rw-r--r--
update-locale.8
1.26
KB
-rw-r--r--
validlocale.8
1.2
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : pthread_atfork.3
.TH PTHREAD_ATFORK 3 LinuxThreads .SH NAME pthread_atfork \- register handlers to be called at fork(2) time .SH SYNOPSIS .B #include <pthread.h> .BI "int pthread_atfork(void (*" prepare ")(void), void (*" parent ")(void), void (*" child ")(void));" .SH DESCRIPTION \fBpthread_atfork\fP registers handler functions to be called just before and just after a new process is created with \fBfork\fP(2). The \fIprepare\fP handler will be called from the parent process, just before the new process is created. The \fIparent\fP handler will be called from the parent process, just before \fBfork\fP(2) returns. The \fIchild\fP handler will be called from the child process, just before \fBfork\fP(2) returns. One or several of the three handlers \fIprepare\fP, \fIparent\fP and \fIchild\fP can be given as \fBNULL\fP, meaning that no handler needs to be called at the corresponding point. \fBpthread_atfork\fP can be called several times to install several sets of handlers. At \fBfork\fP(2) time, the \fIprepare\fP handlers are called in LIFO order (last added with \fBpthread_atfork\fP, first called before \fBfork\fP), while the \fIparent\fP and \fIchild\fP handlers are called in FIFO order (first added, first called). To understand the purpose of \fBpthread_atfork\fP, recall that \fBfork\fP(2) duplicates the whole memory space, including mutexes in their current locking state, but only the calling thread: other threads are not running in the child process. The mutexes are not usable after the \fBfork\fP and must be initialized with \fIpthread_mutex_init\fP in the child process. This is a limitation of the current implementation and might or might not be present in future versions. .SH "RETURN VALUE" \fBpthread_atfork\fP returns 0 on success and a non-zero error code on error. .SH ERRORS .TP \fBENOMEM\fP insufficient memory available to register the handlers. .SH AUTHOR Xavier Leroy <Xavier.Leroy@inria.fr> .SH "SEE ALSO" \fBfork\fP(2), \fBpthread_mutex_lock\fP(3), \fBpthread_mutex_unlock\fP(3).
Close