summaryrefslogtreecommitdiff
path: root/relay.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-01-13 11:30:15 +0100
committerFelix Fietkau <nbd@openwrt.org>2013-01-13 11:30:15 +0100
commit1a8612c18833b3ee9ff07b28533408f2e45fddfd (patch)
tree04c4a44001aaa4c7edecc9b754b9807ffc358a35 /relay.c
parentf719927edacdbc2202b3feceb351508ad7a86998 (diff)
poll ustream after the process dies to fix eof detection
Diffstat (limited to 'relay.c')
-rw-r--r--relay.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/relay.c b/relay.c
index 81e7736..72f6e4d 100644
--- 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);