Quellcode durchsuchen

BTap: don't assert on error fd events

ambrop7 vor 15 Jahren
Ursprung
Commit
7f87ec820b
1 geänderte Dateien mit 4 neuen und 1 gelöschten Zeilen
  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)