[Syslog-ng-commit] syslog-ng--mainline: fixed process restarting and some other minor fixes

Balazs Scheidler bazsi at balabit.hu
Sat Oct 28 09:24:55 CEST 2006


Link: <http://intra.balabit/cgi-bin/viewarch.cgi/devel@balabit.hu--other-1/syslog-ng--mainline--2.0--patch-90>
Revision: syslog-ng--mainline--2.0--patch-90
Archive: devel at balabit.hu--other-1
Creator: Balazs Scheidler <bazsi at balabit.hu>
Date: Sat Oct 28 09:24:49 CEST 2006
Standard-date: 2006-10-28 07:24:49 GMT
Modified-files: ChangeLog src/afprog.c src/gsockaddr.c
    src/logwriter.c
New-patches: devel at balabit.hu--other-1/syslog-ng--mainline--2.0--patch-90
Summary: fixed process restarting and some other minor fixes
Keywords: 

	* src/afprog.c (afprogram_dd_exit): check that the current pid is
	equal to the process that was exited, as the EPIPE handling code
	might have already done our job,
	(afprogram_dd_init): don't leave the read side of the pipe twice
	with the process, removed a call to g_fd_set_cloexec() as it's not
	needed and was too late anyway, should've been before fork,
	
	* src/gsockaddr.c (g_sockaddr_unix_format): the kernel sometimes
	returns only an address family for unix socket names, and we printed
	a lot of garbage instead of "anonymous" in this case

	* src/logwriter.c (log_writer_broken): move log_pipe_deinit() before
	log_pipe_notify(), this was changed in rc3 with a changelog that it
	should not matter, however it does matter :P as it might have left
	the writer in an unpolled state

Diff stats:
 ChangeLog       |   28 ++++++++++++++++++++++++++++
 src/afprog.c    |    7 ++++---
 src/gsockaddr.c |    2 +-
 src/logwriter.c |    7 +++++--
 4 files changed, 38 insertions(+), 6 deletions(-)


More information about the Syslog-ng-commit mailing list