commit libdaemon for openSUSE:Factory
Hello community, here is the log from the commit of package libdaemon for openSUSE:Factory checked in at Thu Jan 29 23:33:23 CET 2009. -------- --- libdaemon/libdaemon.changes 2008-11-27 16:22:41.000000000 +0100 +++ libdaemon/libdaemon.changes 2009-01-27 18:02:44.000000000 +0100 @@ -1,0 +2,7 @@ +Tue Jan 27 17:57:08 CET 2009 - seife@suse.de + +- mark filedescritor as closed after closing it, preventing + application errors in e.g. avahi (bnc#469342, bnc#442210) + Thanks to Stefan Thaeter for providing the patch. + +------------------------------------------------------------------- calling whatdependson for head-i586 New: ---- libdaemon-0.13-bnc469342.diff ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libdaemon.spec ++++++ --- /var/tmp/diff_new_pack.Cf1150/_old 2009-01-29 23:31:05.000000000 +0100 +++ /var/tmp/diff_new_pack.Cf1150/_new 2009-01-29 23:31:05.000000000 +0100 @@ -22,12 +22,13 @@ BuildRequires: doxygen Url: http://0pointer.de/lennart/projects/libdaemon/ Version: 0.13 -Release: 1 +Release: 2 Summary: Lightweight C library That Eases the Writing of UNIX Daemons License: LGPL v2.1 or later Group: System/Libraries Source: %{name}-%{version}.tar.bz2 Patch2: libdaemon-0.12-bnc449728.diff +Patch3: libdaemon-0.13-bnc469342.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build %package -n libdaemon0 @@ -128,6 +129,7 @@ %prep %setup -q %patch2 -p1 +%patch3 -p1 %build export CFLAGS="$RPM_OPT_FLAGS" @@ -158,6 +160,10 @@ %{_includedir}/libdaemon/*.h %changelog +* Tue Jan 27 2009 seife@suse.de +- mark filedescritor as closed after closing it, preventing + application errors in e.g. avahi (bnc#469342, bnc#442210) + Thanks to Stefan Thaeter for providing the patch. * Thu Nov 27 2008 seife@suse.de - update to version 0.13: - add daemon_reset_sigs() and daemon_unblock_sigs() ++++++ libdaemon-0.13-bnc469342.diff ++++++ Index: b/libdaemon/dfork.c =================================================================== --- a/libdaemon/dfork.c +++ b/libdaemon/dfork.c @@ -529,10 +529,13 @@ int daemon_close_allv(const int except_f closedir(d); errno = saved_errno; return -1; } + + if (fd == _daemon_retval_pipe[0]) + _daemon_retval_pipe[0] = -1; /* mark as closed */ } closedir(d); return 0; } @@ -561,10 +564,13 @@ int daemon_close_allv(const int except_f if (found) continue; if (close(fd) < 0 && errno != EBADF) return -1; + + if (fd == _daemon_retval_pipe[0]) + _daemon_retval_pipe[0] = -1; /* mark as closed */ } return 0; } ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@Hilbert.suse.de