Re: usblp not waiting for read data

2008-01-02 Thread Martin Mares
Hello! > You aren't opening it with O_NDELAY by any chance? Hopefully not :) Even plain cat exhibits the problem. > Please look with strace. | albireo:/home/mj# strace cat /dev/usb/lp0 | execve("/bin/cat", ["cat", "/dev/usb/lp0"], [/* 34 vars */]) = 0 | uname({sys="Linux", node="albireo", ...

usblp not waiting for read data

2007-12-29 Thread Martin Mares
Hello, world! I am currently playing with HP LaserJet P2015D connected over USB and I have a slight problem with the usblp driver there. Whenever I try to read from /dev/usb/lp0 and no data are available, it immediately returns reporting EOF (0 bytes read) instead of waiting for the data. Does any