about summary refs log tree commit homepage
path: root/queue_loop.c
diff options
context:
space:
mode:
Diffstat (limited to 'queue_loop.c')
-rw-r--r--queue_loop.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/queue_loop.c b/queue_loop.c
index 77c8620..f8a03a9 100644
--- a/queue_loop.c
+++ b/queue_loop.c
@@ -4,15 +4,6 @@
  */
 #include "cmogstored.h"
 
-static void queue_loop_cleanup(void *arg)
-{
-        unsigned long self = (unsigned long)pthread_self();
-
-        syslog(LOG_DEBUG, "mog_queue_loop[%lx] thread shutting down...", self);
-        mog_alloc_quit();
-        syslog(LOG_DEBUG, "mog_queue_loop[%lx] thread done", self);
-}
-
 static struct mog_fd *queue_xchg_maybe(struct mog_queue *q, struct mog_fd *mfd)
 {
         /*
@@ -46,8 +37,6 @@ void * mog_queue_loop(void *arg)
         struct mog_queue *q = arg;
         struct mog_fd *mfd = NULL;
 
-        mog_cancel_prepare();
-        pthread_cleanup_push(queue_loop_cleanup, NULL);
         syslog(LOG_DEBUG, "mog_queue_loop[%lx] thread ready",
                (unsigned long)pthread_self());
 
@@ -71,8 +60,6 @@ void * mog_queue_loop(void *arg)
                 }
         }
 
-        pthread_cleanup_pop(1);
-
         return NULL;
 }