From e69799882815b53654aa39eee6b34983161d44db Mon Sep 17 00:00:00 2001 From: Bo Liu Date: Sat, 26 Mar 2016 13:59:33 -0500 Subject: [PATCH] fix sdlog2 self deadlock bug --- src/modules/sdlog2/sdlog2.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/modules/sdlog2/sdlog2.c b/src/modules/sdlog2/sdlog2.c index 054e0e06f4..5b732d8781 100644 --- a/src/modules/sdlog2/sdlog2.c +++ b/src/modules/sdlog2/sdlog2.c @@ -634,8 +634,6 @@ static void *logwriter_thread(void *arg) pthread_cond_wait(&logbuffer_cond, &logbuffer_mutex); } - pthread_mutex_lock(&logbuffer_mutex); - /* only get pointer to thread-safe data, do heavy I/O a few lines down */ int available = logbuffer_get_ptr(logbuf, &read_ptr, &is_part);