On Thu, 17 Jun 1999, Balazs Scheidler wrote:
It looks like the file descriptor for the streams is never initialized. The routine do_init_afstreams_source is never called.
(gdb) break do_init_afstreams_source Breakpoint 1 at 0x1cbd8: file afstreams.c, line 126. (gdb) run -d -f /etc/syslog-ng.conf Starting program: /h0/cermak/src/syslog-ng-1.1.25/src/./syslog-ng -d -f /etc/syslog-ng.conf [New LWP 2 ] [New LWP 3 ] [New LWP 4 ] syslog-ng version 1.1.25 starting [New LWP 5 ]
Program received signal SIGHUP, Hangup. 0xef637368 in poll () (gdb) cont Continuing. SIGHUP received, restarting syslog-ng new configuration initialized [New LWP 6 ] ^C Program received signal SIGINT, Interrupt. 0xef637368 in poll () (gdb) quit
It must have been called, because otherwise you would not see those getmsg() failed messages. Are you sure the sun-streams driver is listed in your source statement?
Yup. Get the same result in the syslog. Here is the config: options { sync(1); }; # Setup source pipes #source src { sun-door /etc/.syslog_door; internal; }; source src { sun-streams /dev/log; sun-door /etc/.syslog_door; internal; }; # Setup destination pipes destination everything { file /var/log/sys sync(2); }; #destination everything { udp 128.6.86.2,514; }; # Connect log pipes from source to destination log { source src; destination everything; }; In the log file: Jun 21 11:59:02 src@coquille syslog-ng[2787]: syslog-ng version 1.1.25 starting Jun 21 11:59:02 src@coquille syslog-ng[2787]: do_stream_read: getmsg() failed Error 0 Jun 21 11:59:15 src@coquille syslog-ng[2787]: SIGHUP received, restarting syslog-ng Rob