Set the FD_CLOEXEC flag for the given socket descriptor, so that it will not exist on child processes.*/
| 83 | |
| 84 | /* Set the FD_CLOEXEC flag for the given socket descriptor, so that it will not exist on child processes.*/ |
| 85 | static void fixSocketFlags( int socketDesc ) |
| 86 | { |
| 87 | #ifndef _MSC_VER |
| 88 | int oldflags = fcntl (socketDesc, F_GETFD, 0); |
| 89 | if ( oldflags >= 0 ) |
| 90 | { |
| 91 | fcntl( socketDesc, F_SETFD, oldflags | FD_CLOEXEC ); |
| 92 | } |
| 93 | #endif |
| 94 | } |
| 95 | |
| 96 | static DisplayDriverServer::PortRange g_portRange( |
| 97 | std::numeric_limits<DisplayDriverServer::Port>::min(), |
no outgoing calls
no test coverage detected