proc: consume all data after the pipe dies, instead of looping with 100% cpu usage
authorFelix Fietkau <nbd@openwrt.org>
Tue, 30 Jul 2013 22:32:40 +0000 (00:32 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 30 Jul 2013 22:32:40 +0000 (00:32 +0200)
commit7823ad9590d0ec54bca6f637e0d8b14794bb49c0
tree481ecf5996bb80b67ae1bfd9213bac6f203f1464
parent37ea780f269d189e98dbafe7654f83bf35c8a940
proc: consume all data after the pipe dies, instead of looping with 100% cpu usage

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
proc.c