User Tools

Site Tools


Sidebar

Table Of Contents

endurox:v7.0.x:api:xatmi:ndrx_atfork_parent.3

NDRX_ATFORK_PARENT

NDRX_ATFORK_PARENT

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
ERRORS
BUGS
SEE ALSO
COPYING

NAME

ndrx_atfork_parent − Function to be executed by parent process after the fork if ndrx_fork() not used

SYNOPSIS

#include <atmi.h>

void ndrx_atfork_parent(void);

For XATMI client link with −latmiclt −latmi −lubf −lnstd −lpthread −lrt −lm

For XATMI server link with −latmisrv|−latmisrvnomain|−latmisrvinteg −latmi −lubf −lnstd −lpthread −lrt −lm

DESCRIPTION

When process is copied by fork() system call, ndrx_atfork_parent() shall be executed by parent process after the fork call. This ensures that Enduro/X sub−systems for parent process returns to normal operations after the parent’s ndrx_atfork_prepare() and fork() calls.

At given time function does some logic only if System V IPC is used, for others IPC transports it does not any logic, but this fact is subject of change, and in future releases some other tasks might be required to be done by Enduro/X after process forking, thus it is recommended to use ndrx_fork(), call manually ndrx_atfork_parent() or register it with pthread_atfork()

RETURN VALUE

N/A

ERRORS

N/A

BUGS

Report bugs to support@mavimax.com

SEE ALSO

ndrx_fork(3) ndrx_atfork_prepare(3) ndrx_atfork_child(3)

COPYING

© Mavimax, Ltd