]> www.infradead.org Git - users/mchehab/edactool.git/commit
edactool: don't complain if size is zero. Insted, just sleep for a while
authorMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 26 Feb 2013 17:53:00 +0000 (14:53 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 26 Feb 2013 19:04:11 +0000 (16:04 -0300)
commit4f8ed7002600d92a5bcd12d6e8a4de3b20d31347
treefea676f441a70596a411681ffcd4a2bbd4b675c9
parent028e385db2e7709dbd6312ead1c15547591ab2d6
edactool: don't complain if size is zero. Insted, just sleep for a while

Polling time, if read() doesn't block. Currently, trace_pipe_raw never
blocks on read(). So, we need to sleep for a while, to avoid spending
too much CPU cycles. A fix for it is expected for 3.10.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
edactool.c