summaryrefslogtreecommitdiff
path: root/accel-pptpd/triton/md.c
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pptpd/triton/md.c')
-rw-r--r--accel-pptpd/triton/md.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/accel-pptpd/triton/md.c b/accel-pptpd/triton/md.c
index ac0fe00..4570347 100644
--- a/accel-pptpd/triton/md.c
+++ b/accel-pptpd/triton/md.c
@@ -48,6 +48,11 @@ void md_run()
pthread_create(&md_thr,md_thread,NULL);
}
+void md_terminate()
+{
+ pthread_join(&md_thr);
+}
+
static void* md_thread(void *arg)
{
int max_fd=0,t;
@@ -78,11 +83,6 @@ static void* md_thread(void *arg)
}
}
-void md_terminate()
-{
-
-}
-
void triton_md_register_handler(struct triton_md_handler_t *h)
{
h->epoll_event.data.ptr=h;