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

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