kmemtraced: check if splice() returned zero
commit41b1a57a57b681ad0d04f7ca28745214c2d8b6c1
authorTom Zanussi <zanussi@comcast.net>
Sat, 11 Oct 2008 04:58:51 +0000 (10 23:58 -0500)
committerEduard - Gabriel Munteanu <eduard.munteanu@linux360.ro>
Tue, 14 Oct 2008 07:57:09 +0000 (14 10:57 +0300)
treec15c82b14ff825f43b4909310b7a7241c3466160
parentb792ad76cebbb9acb621434212f684884da719eb
kmemtraced: check if splice() returned zero

Otherwise it would end up hanging kmemtraced in the second splice (pipe
to log_fd) if the return from the first splice was 0 (i.e. there's no
data available (and we can never know if there will ever be any
more)).

[eduard.munteanu@linux360.ro: commit name]
Signed-off-by: Tom Zanussi <tzanussi@gmail.com>
Signed-off-by: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro>
kmemtraced.c