|
XSocket API
2.0
XIA Socket Library
|
Xfork() - create a child process. More...
#include "Xsocket.h"Functions | |
| int | Xfork (void) |
| Creates a new process by duplicating the calling process. More... | |
| int Xfork | ( | void | ) |
This function must be used rather than the standard fork() call when uisng Xsockets. Because all of the XIA code resides in user space, we don't get the correct behavior from systems calls that affect the kernel. Xfork() wraps the system fork() call so that correct internal socket state is maintained. This prevents issues such as calling Xclose() in a child process also closing the same socket in the parent process.
1.8.11