[Syslog-ng-commit] syslog-ng--mainline: fixed possible segmentation fault on SIGHUP

Balazs Scheidler bazsi at balabit.hu
Sat Feb 11 18:31:50 CET 2006


Link: <http://intra.balabit/cgi-bin/viewarch.cgi/devel@balabit.hu--other-1/syslog-ng--mainline--2.0--patch-10>
Revision: syslog-ng--mainline--2.0--patch-10
Archive: devel at balabit.hu--other-1
Creator: Balazs Scheidler <bazsi at balabit.hu>
Date: Sat Feb 11 18:31:08 CET 2006
Standard-date: 2006-02-11 17:31:08 GMT
Modified-files: ChangeLog NEWS src/afinet.c src/afsocket.c
    src/afsocket.h src/afunix.c src/cfg-grammar.y src/cfg.c
    src/logpipe.c src/logreader.c src/logreader.h
    src/logsource.c src/logsource.h src/main.c
New-patches: devel at balabit.hu--other-1/syslog-ng--mainline--2.0--patch-10
Summary: fixed possible segmentation fault on SIGHUP
Keywords: 

	* src/afsocket.c (afsocket_sc_set_owner): new function, changes all
	references to a new AFSocketSourceDriver (this happens accross
	SIGHUPs),
	(afsocket_sd_set_listener_keep_alive): removed, there's no separate
	LISTENER_KEEP_ALIVE setting,
	(afsocket_sd_init): instead of simply changing the next-hop log-pipe
	of connections call afsocket_sc_set_owner which changes less
	explicit references

	* src/cfg-grammar.y (yyparser_reset): new function, resets all
        'last_' variables as they are not referenced and might contain
        pointers to stale data

	* src/logpipe.c (log_pipe_free_instance): function body moved to
	log_pipe_unref to clear some clutter in backtraces and both
	functions are only a couple of lines anyway

	* src/logreader.c (log_reader_set_options): new function, allows the
	caller to change the pointer to the options structure

Diff stats:
 ChangeLog         |   35 +++++++++++++++++++++++++++++++++++
 NEWS              |   18 ++++++++++++++----
 src/afinet.c      |    2 +-
 src/afsocket.c    |   30 ++++++++++++++++--------------
 src/afsocket.h    |    1 -
 src/afunix.c      |    1 +
 src/cfg-grammar.y |   14 ++++++++++++--
 src/cfg.c         |    2 ++
 src/logpipe.c     |   14 ++++----------
 src/logreader.c   |   11 +++++++++++
 src/logreader.h   |    2 ++
 src/logsource.c   |    1 -
 src/logsource.h   |    8 ++++++++
 src/main.c        |    2 +-
 14 files changed, 107 insertions(+), 34 deletions(-)


More information about the Syslog-ng-commit mailing list