cherry picked cb5d027b about context managers
[nepi.git] / src / nepi / resources / linux / scripts / linux-tap-create.py
index f5874b3..035f1a6 100644 (file)
@@ -140,6 +140,7 @@ def create_tap(vif_name, vif_type, pi):
     if not pi:
         flags |= IFF_NO_PI
  
+    # xxx : Thierry : not quite sure where this gets closed
     fd = os.open("/dev/net/tun", os.O_RDWR)
  
     ifreq = struct.pack("16sH", vif_name, flags)