mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-17 05:50:41 +01:00
Merge pull request #4279 from rgerhards/ompipe-fix-hup
ompipe bugfix: race during HUP
This commit is contained in:
commit
16e8b44c6c
@ -412,10 +412,12 @@ ENDparseSelectorAct
|
||||
|
||||
BEGINdoHUP
|
||||
CODESTARTdoHUP
|
||||
pthread_mutex_lock(&pData->mutWrite);
|
||||
if(pData->fd != -1) {
|
||||
close(pData->fd);
|
||||
pData->fd = -1;
|
||||
}
|
||||
pthread_mutex_unlock(&pData->mutWrite);
|
||||
ENDdoHUP
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user