--- gvpe/src/vpn_tcp.C 2005/04/26 00:55:56 1.14 +++ gvpe/src/vpn_tcp.C 2005/07/09 02:43:19 1.15 @@ -136,6 +136,7 @@ slog (L_DEBUG, _("%s: accepted tcp connection"), (const char *)si);//D fcntl (fd, F_SETFL, O_NONBLOCK); + fcntl (fd, F_SETFD, FD_CLOEXEC); tcp_connection *i = new tcp_connection (fd, si, *this); tcp_si.insert (*i);