summaryrefslogtreecommitdiffstats
path: root/tools/syslogd.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-10-27 14:50:06 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-10-27 14:50:06 +0200
commitfac3c09f0433ebe073e2572fe1eb0da5e598b7a6 (patch)
tree1d9335fe58ff6d3d1543f8a375f0cccd203ec91a /tools/syslogd.c
parent205114176d08cf662faca67077598061404f0d24 (diff)
parent0d762b750988d47cfec96ee6e3bdca9ea15ecc96 (diff)
downloadrsyslog-fac3c09f0433ebe073e2572fe1eb0da5e598b7a6.tar.gz
rsyslog-fac3c09f0433ebe073e2572fe1eb0da5e598b7a6.tar.bz2
rsyslog-fac3c09f0433ebe073e2572fe1eb0da5e598b7a6.zip
Merge branch 'v7-stable'
Diffstat (limited to 'tools/syslogd.c')
-rw-r--r--tools/syslogd.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/syslogd.c b/tools/syslogd.c
index c5801555..05cbfc13 100644
--- a/tools/syslogd.c
+++ b/tools/syslogd.c
@@ -93,6 +93,8 @@
#include <zlib.h>
#endif
+extern int yydebug; /* interface to flex */
+
#include <netdb.h>
#include "pidfile.h"
@@ -1830,7 +1832,7 @@ int realMain(int argc, char **argv)
* of other options, we do this during the inital option processing.
* rgerhards, 2008-04-04
*/
- while((ch = getopt(argc, argv, "46a:Ac:def:g:hi:l:m:M:nN:op:qQr::s:t:T:u:vwx")) != EOF) {
+ while((ch = getopt(argc, argv, "46a:Ac:dDef:g:hi:l:m:M:nN:op:qQr::s:t:T:u:vwx")) != EOF) {
switch((char)ch) {
case '4':
case '6':
@@ -1863,6 +1865,10 @@ int realMain(int argc, char **argv)
case 'd': /* debug - must be handled now, so that debug is active during init! */
debugging_on = 1;
Debug = 1;
+ yydebug = 1;
+ break;
+ case 'D': /* BISON debug */
+ yydebug = 1;
break;
case 'e': /* log every message (no repeat message supression) */
bEOptionWasGiven = 1;