diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-12-21 10:25:47 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-12-21 10:25:47 +0000 |
commit | e3ed0bf6e30fc781aecb4a9ae02810ae7f35e962 (patch) | |
tree | 86659c1e80d6f64779c7421ffe66f81063c5ac07 /omfwd.c | |
parent | 019ba00f8d4f4333ee5cb1f45510bb53929eb2da (diff) | |
download | rsyslog-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.c | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -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; } |