Parcourir la source

BTap: don't assert on error fd events

ambrop7 il y a 15 ans
Parent
commit
7f87ec820b
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4 1
      tuntap/BTap.c

+ 4 - 1
tuntap/BTap.c

@@ -215,11 +215,14 @@ done:
 
 static void fd_handler (BTap *o, int events)
 {
-    ASSERT((events&BREACTOR_WRITE) || (events&BREACTOR_READ))
     DebugObject_Access(&o->d_obj);
     
     DEAD_DECLARE
     
+    if (events&BREACTOR_ERROR) {
+        DEBUG("WARNING: device fd reports error?");
+    }
+    
     if (events&BREACTOR_WRITE) do {
         ASSERT(o->input_packet_len >= 0)