[Vtun-devel] child socket close fix for 2.5.0
Status: Inactive
Brought to you by:
mtbishop
From: James Y. <ji...@nt...> - 2002-01-09 11:25:45
|
I hope this fix makes it into 2.5.0 (Alexander Bergolth put it in the CVS post 2.5b1) -- I think it solved a problem I was having where vtund didn't properly come back up after network outages (when using persist/keepalive). diff -ur vtun-2.5b1/server.c vtun-2.5b1-jy/server.c --- vtun-2.5b1/server.c Thu Jun 7 09:38:36 2001 +++ vtun-2.5b1-jy/server.c Tue Dec 4 05:03:20 2001 @@ -140,6 +140,7 @@ switch( fork() ){ case 0: + close(s); connection(s1); break; case -1: |