summaryrefslogtreecommitdiff
path: root/relay.c
diff options
context:
space:
mode:
Diffstat (limited to 'relay.c')
-rw-r--r--relay.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/relay.c b/relay.c
index 09f53a1..5de5cb4 100644
--- a/relay.c
+++ b/relay.c
@@ -162,6 +162,15 @@ static void relay_proc_cb(struct uloop_process *proc, int ret)
relay_close_if_done(r);
}
+void uh_relay_kill(struct client *cl, struct relay *r)
+{
+ struct ustream *us = &r->sfd.stream;
+
+ kill(r->proc.pid, SIGKILL);
+ us->eof = true;
+ ustream_state_change(us);
+}
+
void uh_relay_open(struct client *cl, struct relay *r, int fd, int pid)
{
struct ustream *us = &r->sfd.stream;