poll ustream after the process dies to fix eof detection
authorFelix Fietkau <nbd@openwrt.org>
Sun, 13 Jan 2013 10:30:15 +0000 (11:30 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 13 Jan 2013 10:30:15 +0000 (11:30 +0100)
relay.c

diff --git a/relay.c b/relay.c
index 81e7736c06187f4028d71bd3a5774f62258b161b..72f6e4df600c6dfb0addcec6a6dcefb348358378 100644 (file)
--- a/relay.c
+++ b/relay.c
@@ -156,6 +156,7 @@ static void relay_proc_cb(struct uloop_process *proc, int ret)
 {
        struct relay *r = container_of(proc, struct relay, proc);
 
+       ustream_poll(&r->sfd.stream);
        r->process_done = true;
        r->ret = ret;
        relay_close_if_done(r);