Re: os.read in non blocking mode of os.open : resource busy error

2009-06-21 Thread Kushal Kumaran
On Wed, Jun 17, 2009 at 7:18 PM, kshama nagaraj wrote: > Dear all, > > I am using os.open to open a tun/tap device and then read data from it. > I also need to do some other tasks apart from reading from this device. So i > wish to have the read non blocking. > I am opening the device in non-block

os.read in non blocking mode of os.open : resource busy error

2009-06-19 Thread kshama nagaraj
Dear all, I am using os.open to open a tun/tap device and then read data from it. I also need to do some other tasks apart from reading from this device. So i wish to have the read non blocking. I am opening the device in non-block mode using os.O_NONBLOCK . But, if i do this, i get an error when