Blame SOURCES/rsyslog-8.24.0-rhbz1559408-async-writer.patch

c17bfd
diff -up ./runtime/stream.c.fix ./runtime/stream.c
c17bfd
--- ./runtime/stream.c.fix	2018-06-25 17:39:39.223082288 +0200
c17bfd
+++ ./runtime/stream.c	2018-06-25 17:40:26.549846798 +0200
c17bfd
@@ -1427,10 +1427,8 @@ asyncWriterThread(void *pPtr)
c17bfd
 			}
c17bfd
 			if(bTimedOut && pThis->iBufPtr > 0) {
c17bfd
 				/* if we timed out, we need to flush pending data */
c17bfd
-				d_pthread_mutex_unlock(&pThis->mut);
c17bfd
 				strmFlushInternal(pThis, 1);
c17bfd
 				bTimedOut = 0;
c17bfd
-				d_pthread_mutex_lock(&pThis->mut); 
c17bfd
 				continue;
c17bfd
 			}
c17bfd
 			bTimedOut = 0;