Only process pipe read if read was successful
Only process pipe read if read was successful

Signed-off-by: Colin Ian King <d100aa70785e45ee8deab668147d941941915c21@canonical.com>

ColinIanKing/numatop,intel/numatop,ColinIanKing/numatop,daniel-ortiz/numatop,wdv4758h/numatop,hoangt/numatop,intel/numatop,01org/numatop,01org/numatop,ColinIanKing/numatop,omorenopuello/numatop