procd: Exit askfirst on read error
authorHelmut Schaa <helmut.schaa@googlemail.com>
Tue, 17 Sep 2013 06:48:48 +0000 (06:48 +0000)
committerJohn Crispin <blogic@openwrt.org>
Tue, 17 Sep 2013 19:30:09 +0000 (21:30 +0200)
commitf51f9cc5738d340423e44e678829402b367cf866
treef549312af39e931c54c6a0a1073b38c3119567c2
parentb803c65259b426a2b2ba14d342bec4de598734b8
procd: Exit askfirst on read error

When running askfirst on an unused tty device askfirst starts
busylooping forever. Fix this by returning an error if we read
an EOF.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
askfirst.c