0001 NDRX_ATFORK_CHILD(3)
0002 ====================
0003 :doctype: manpage
0004
0005
0006 NAME
0007 ----
0008 ndrx_atfork_child - Function to be executed by child process after the fork
0009 if ndrx_fork() is not used
0010
0011
0012 SYNOPSIS
0013 --------
0014 #include <atmi.h>
0015
0016 void ndrx_atfork_child(void);
0017
0018 For XATMI client link with '-latmiclt -latmi -lubf -lnstd -lpthread -lrt -lm'
0019
0020 For XATMI server link with '-latmisrv|-latmisrvnomain|-latmisrvinteg -latmi -lubf -lnstd -lpthread -lrt -lm'
0021
0022 DESCRIPTION
0023 -----------
0024 When process is copied by *fork()* system call, *ndrx_atfork_child()* shall be
0025 executed by child process after the fork call. This ensures that Enduro/X
0026 sub-systems for child process cleans up any open resources. Particularly if fork is
0027 done by XATMI server then function deallocates any server resources
0028 open. *NOTE* that if any thread is doing XATMI client tasks, then *tpterm(3)*
0029 shall be called prior fork() is executed.
0030
0031 The logic of function is subject of change and in future releases some other
0032 tasks might be required to be done by Enduro/X after process forking,
0033 thus it is recommended to use *ndrx_fork()*, call manually *ndrx_atfork_child()*
0034 or register it with *pthread_atfork()*
0035
0036 RETURN VALUE
0037 ------------
0038 *N/A*
0039
0040 ERRORS
0041 ------
0042 *N/A*
0043
0044 BUGS
0045 ----
0046 Report bugs to support@mavimax.com
0047
0048 SEE ALSO
0049 --------
0050 *ndrx_fork(3)* *ndrx_atfork_prepare(3)* *ndrx_atfork_parent(3)*
0051
0052
0053 COPYING
0054 -------
0055 (C) Mavimax, Ltd
0056