- Extra check op EINTR bij inlezen requests
[tinc] / src / net.c
index bc3540e..fd38c02 100644 (file)
--- a/src/net.c
+++ b/src/net.c
@@ -17,7 +17,7 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id: net.c,v 1.35.4.10 2000/06/27 20:10:48 guus Exp $
+    $Id: net.c,v 1.35.4.12 2000/06/28 10:11:10 guus Exp $
 */
 
 #include "config.h"
@@ -940,7 +940,7 @@ cp
   /* Then send a notification about all these connections to all hosts
      that are still connected to us. */
   for(p = conn_list; p != NULL; p = p->next)
-    if(!p->status.remove && p->status.meta)
+    if(p->status.active && p->status.meta)
       for(q = conn_list; q != NULL; q = q->next)
        if(q->status.remove)
          send_del_host(p, q);
@@ -1053,6 +1053,8 @@ cp
 
   if(lenin<=0)
     {
+      if(errno==EINTR)
+        return 0;      
       syslog(LOG_ERR, _("Metadata socket read error: %m"));
       return -1;
     }