--- gvpe/src/vpn_tcp.C 2005/03/23 20:07:56 1.13 +++ gvpe/src/vpn_tcp.C 2005/07/09 02:43:19 1.15 @@ -16,7 +16,7 @@ You should have received a copy of the GNU General Public License along with gvpe; if not, write to the Free Software - Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include "config.h" @@ -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);