summaryrefslogtreecommitdiffstats
path: root/omfwd.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-12-21 10:25:47 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-12-21 10:25:47 +0000
commite3ed0bf6e30fc781aecb4a9ae02810ae7f35e962 (patch)
tree86659c1e80d6f64779c7421ffe66f81063c5ac07 /omfwd.c
parent019ba00f8d4f4333ee5cb1f45510bb53929eb2da (diff)
downloadrsyslog-e3ed0bf6e30fc781aecb4a9ae02810ae7f35e962.tar.gz
rsyslog-e3ed0bf6e30fc781aecb4a9ae02810ae7f35e962.tar.xz
rsyslog-e3ed0bf6e30fc781aecb4a9ae02810ae7f35e962.zip
removed no longer needed mutex from omfwd
Diffstat (limited to 'omfwd.c')
-rw-r--r--omfwd.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/omfwd.c b/omfwd.c
index 14e3810c..ba0a118a 100644
--- a/omfwd.c
+++ b/omfwd.c
@@ -106,7 +106,6 @@ typedef struct _instanceData {
# define FORW_TCP 1
/* following fields for TCP-based delivery */
time_t ttSuspend; /* time selector was suspended */
- pthread_mutex_t mtxTCPSend;
# ifdef USE_GSSAPI
gss_ctx_id_t gss_context;
OM_uint32 gss_flags;
@@ -147,10 +146,6 @@ CODESTARTfreeInstance
free(pData->port);
break;
}
- /* delete any mutex objects, if present */
- if(pData->protocol == FORW_TCP) {
- pthread_mutex_destroy(&pData->mtxTCPSend);
- }
# ifdef USE_GSSAPI
if (gss_mode != GSSMODE_NONE) {
OM_uint32 maj_stat, min_stat;
@@ -846,8 +841,6 @@ CODE_STD_STRING_REQUESTparseSelectorAct(1)
if(*p == '@') { /* indicator for TCP! */
pData->protocol = FORW_TCP;
++p; /* eat this '@', too */
- /* in this case, we also need a mutex... */
- pthread_mutex_init(&pData->mtxTCPSend, 0);
} else {
pData->protocol = FORW_UDP;
}