• usage of SOCK_CLOEXEC for closing fds (sockets) in the child on exec

    From Shanth Kumar@21:1/5 to All on Tue Apr 3 00:08:10 2018
    As in the socket system call SOCK_CLOEXEC can be used while creating a socket to close the sockets that are inherited by the child process from the parent But my code that is used for handling TCP services is ACE framework in C++. Classes ACE_SOCK_Stream, ACE_SOCK_Stream instances are used. My question is how to set the flag SOCK_CLOEXEC for a socket. Also let me know how to use these flags in both socket() and accept() calls. Or if this flag cannot be used is there any other way
    that servs the purpose.


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)