~ubuntu-branches/ubuntu/oneiric/rsyslog/oneiric

« back to all changes in this revision

Viewing changes to runtime/obj.c

  • Committer: Dave Walker (Daviey)
  • Author(s): Scott Moser
  • Date: 2011-06-17 20:59:38 UTC
  • mfrom: (36.1.8 oneiric.merge)
  • Revision ID: davewalker@ubuntu.com-20110617205938-pfkizxz2wsgzi2ot
Tags: 5.8.1-1ubuntu1
* Resynchronise with Debian (LP: #794230).  Remaining changes:
  - Run as rsyslog:rsyslog, set $FileOwner to syslog
  - Replace init script with debian/rsyslog.upstart.
  - debian/rsyslog.logrotate: Use reload command to restart rsyslog
  - debian/rsyslog.conf: enable $RepeatedMsgReduction 
    to avoid bloating the syslog file (LP #453444)
  - Add debian/rsyslog.dmesg.upstart to save initial dmesg into a file.
    Install it in debian/rules.
  - debian/50-default.conf: set of default rules for syslog (forwarded to
    Debian #603160). remove file in postrm on purge. manage with ucf.
  - debian/rules: build with LDFLAGS=""
* Dropped:
  - debian/control: Bump build-dependency on debhelper
    debian now depends on dh >= 8
* New upstream release.
* Bump Standards-Version to 3.9.2. No further changes.
* Enable and install impstats module. (Closes: #620114)
* Update logcheck rule. (Closes: #616659)
* debian/rsyslog.init: Set correct compat level (5).
* The way rsyslog processes SIGHUP has changed. It no longer does a reload
  of its configuration, but simply closes all open files. To apply a changed
  configuration, rsyslogd needs to be restarted now.
  - Drop "reload" action from debian/rsyslog.init, map "force-reload" to
    "restart". (Closes: #580897)
  - Add "rotate" action to debian/rsyslog.init which sends SIGHUP to
    rsyslogd. Use that in debian/rsyslog.logrotate. (Closes: #626365)
  - Update debian/rsyslog-mysql.postinst and rsyslog-pgsql.postinst to use
    restart instead of reload.
  - Add a NEWS file explaining the changed SIGHUP handling.
* New upstream stable release.
* New upstream release.
  - Properly handle ANSI SQL strings in ompgsql. (Closes: #600479)
* New upstream release.
* debian/patches/02-pmaixforwardedfrom_type_nokeep.patch
  - Remove, merged upstream.
* debian/patches/03-epoll_create1-fallback.patch
  - Remove, merged upstream.
* debian/patches/03-epoll_create1-fallback.patch
  - If epoll_create1() is not available during runtime, fall back to
    epoll_create(). This fixes remote syslog when runnig rsyslog on a
    lenny kernel. (Closes: #617996)
* New upstream release.
* debian/rsyslog.links
  - Create symlink for rsyslog.service in multi-user.target.wants so rsyslog
    is enabled by default when using systemd.
* debian/patches/02-pmaixforwardedfrom_type_nokeep.patch
  - Fix build failure in aixforwardedfrom parser module by setting the
    module type to NOKEEP.
* debian/rsyslog.preinst
  - Remove old rsyslog.socket symlink from sockets.target.wants on upgrades
    as rsyslog uses syslog.socket now which is provided by systemd.
* debian/rsyslog.install
  - Stop installing rsyslog.socket.
* New upstream release.
* New upstream release.
  - Fix regression in imuxsock plugin which did no longer sanitize received
    messages. This makes 02-cleanup-trailing-lf.patch obsolete and also
    fixes the SQL syntax errors in the mysql output if the input contained
    NUL bytes. Closes: #614061
* Enable and install omprog output plugin. Closes: #552095
* Improve package description. Closes: #612948
  Thanks to Justin B Rye for the patch.
* debian/patches/02-cleanup-trailing-lf.patch
  - Fix regression in imuxsock plugin which did not remove a trailing LF
    anymore. Patch cherry-picked from upstream Git. Closes: #612829
* New upstream release.
* Enable and install parser modules.
* New upstream release.
* Upload to unstable.
* debian/patches/02-typo_fix_equation_sign.patch
  - Removed, merged upstream.
* debian/patches/03-atomic_operations.patch
  - Removed, merged upstream.
* debian/patches/03-atomic_operations.patch
  - Fix build failures on platforms which don't have 64 bit atomic
    operations. Patch cherry-picked from upstream Git. Closes: #600930
* New upstream development release.
* Remove patches, merged upstream
  - debian/patches/02-install_also_rsyslog_socket.patch
  - debian/patches/02-tls_loop_fix.patch
* debian/patches/02-typo_fix_equation_sign.patch
  - Fix small typo ("equation sign"). Closes: #575589
* debian/rsyslog.postinst
  - Remove pre-lenny migration code to rotate old log files from sysklogd.
* New upstream development release.
* debian/rsyslog.install
  - Install omruleset.so plugin: http://www.rsyslog.com/doc/omruleset.html
* debian/rsyslog.default
  - Start rsyslogd with native -c5 mode.
* Install systemd unit files which allow to run rsyslog in socket activation
  mode when systemd is used.
* debian/patches/02-install_also_rsyslog_socket.patch
  - When enabling rsyslog.service also enable rsyslog.socket. Patch
    cherry-picked from upstream Git.
* Bump debhelper compatibility level to 8. Update Build-Depends accordingly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
 *
49
49
 * File begun on 2008-01-04 by RGerhards
50
50
 *
51
 
 * Copyright 2008 Rainer Gerhards and Adiscon GmbH.
 
51
 * Copyright 2008, 2009 Rainer Gerhards and Adiscon GmbH.
52
52
 *
53
53
 * This file is part of the rsyslog runtime library.
54
54
 *
90
90
#include "cfsysline.h"
91
91
#include "unicode-helper.h"
92
92
#include "apc.h"
 
93
#include "datetime.h"
93
94
 
94
95
/* static data */
95
96
DEFobjCurrIf(obj) /* we define our own interface, as this is expected by some macros! */
1129
1130
 
1130
1131
 
1131
1132
        /* DEV debug only: dbgprintf("source file %s requests object '%s', ifIsLoaded %d\n", srcFile, pObjName, pIf->ifIsLoaded); */
1132
 
        d_pthread_mutex_lock(&mutObjGlobalOp);
 
1133
        pthread_mutex_lock(&mutObjGlobalOp);
1133
1134
 
1134
1135
        if(pIf->ifIsLoaded == 1) {
1135
1136
                ABORT_FINALIZE(RS_RET_OK); /* we are already set */
1170
1171
        pIf->ifIsLoaded = 1; /* we are happy */
1171
1172
 
1172
1173
finalize_it:
1173
 
        d_pthread_mutex_unlock(&mutObjGlobalOp);
 
1174
        pthread_mutex_unlock(&mutObjGlobalOp);
1174
1175
 
1175
1176
        if(pStr != NULL)
1176
1177
                rsCStrDestruct(&pStr);
1193
1194
 
1194
1195
 
1195
1196
        /* dev debug only dbgprintf("source file %s releasing object '%s', ifIsLoaded %d\n", srcFile, pObjName, pIf->ifIsLoaded); */
1196
 
        d_pthread_mutex_lock(&mutObjGlobalOp);
 
1197
        pthread_mutex_lock(&mutObjGlobalOp);
1197
1198
 
1198
1199
        if(pObjFile == NULL)
1199
1200
                FINALIZE; /* if it is not a lodable module, we do not need to do anything... */
1214
1215
        pIf->ifIsLoaded = 0; /* indicated "no longer valid" */
1215
1216
 
1216
1217
finalize_it:
1217
 
        d_pthread_mutex_unlock(&mutObjGlobalOp);
 
1218
        pthread_mutex_unlock(&mutObjGlobalOp);
1218
1219
 
1219
1220
        if(pStr != NULL)
1220
1221
                rsCStrDestruct(&pStr);
1330
1331
        CHKiRet(objGetObjInterface(&obj)); /* get ourselves ;) */
1331
1332
 
1332
1333
        /* init classes we use (limit to as few as possible!) */
 
1334
        CHKiRet(errmsgClassInit(pModInfo));
 
1335
        CHKiRet(datetimeClassInit(pModInfo));
1333
1336
        CHKiRet(apcClassInit(pModInfo));
1334
 
        CHKiRet(errmsgClassInit(pModInfo));
1335
1337
        CHKiRet(cfsyslineInit());
1336
1338
        CHKiRet(varClassInit(pModInfo));
1337
1339
        CHKiRet(moduleClassInit(pModInfo));