0001 NDRX_ATFORK_PARENT(3)
0002 =====================
0003 :doctype: manpage
0004
0005
0006 NAME
0007 ----
0008 ndrx_atfork_parent - Function to be executed by parent process after the fork
0009 if ndrx_fork() not used
0010
0011
0012 SYNOPSIS
0013 --------
0014 #include <atmi.h>
0015
0016 void ndrx_atfork_parent(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_parent()* shall be
0025 executed by parent process after the fork call. This ensures that Enduro/X
0026 sub-systems for parent process returns to normal operations after
0027 the parent's *ndrx_atfork_prepare()* and *fork()* calls.
0028
0029 At given time function does some logic only if System V IPC is used, for others
0030 IPC transports it does not any logic, but this fact is subject of change,
0031 and in future releases some other tasks might be required to be done by
0032 Enduro/X after process forking, thus it is recommended to use *ndrx_fork()*,
0033 call manually *ndrx_atfork_parent()* or register it with *pthread_atfork()*
0034
0035 RETURN VALUE
0036 ------------
0037 *N/A*
0038
0039 ERRORS
0040 ------
0041 *N/A*
0042
0043 BUGS
0044 ----
0045 Report bugs to support@mavimax.com
0046
0047 SEE ALSO
0048 --------
0049 *ndrx_fork(3)* *ndrx_atfork_prepare(3)* *ndrx_atfork_child(3)*
0050
0051
0052 COPYING
0053 -------
0054 (C) Mavimax, Ltd
0055