# NON-block reading for OS.read(tun\_tap) in tunnel.py

**URL:** <https://www.ruby-forum.com/t/non-block-reading-for-os-read-tun-tap-in-tunnel-py/143590>\
**Category:** GNU Radio\
**Created:** [July 20, 2008, 11:39pm UTC](https://www.ruby-forum.com/t/non-block-reading-for-os-read-tun-tap-in-tunnel-py/143590 "2008-07-20T23:39:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Feng\_Andrew\_Ge](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/a698b9/32.png) [@Feng\_Andrew\_Ge](https://www.ruby-forum.com/u/Feng_Andrew_Ge)\
**Post date:** [July 20, 2008, 11:39pm UTC](https://www.ruby-forum.com/t/non-block-reading-for-os-read-tun-tap-in-tunnel-py/143590/1 "2008-07-20T23:39:37Z")

</div>

I am trying to enable non-blocking reading for os.read(tun\_fd, \*)  
through open\_tun\_interface() in tunnel.py, did anybody do so before? Are  
there any potential problem for the whole tunnel.py code if I do so?

Thanks  
Andrew
