This commit is contained in:
parent
83d6399624
commit
86dfad4575
17
sysklogd-1.4.1-dontsleep.patch
Normal file
17
sysklogd-1.4.1-dontsleep.patch
Normal file
@ -0,0 +1,17 @@
|
||||
diff -ru sysklogd-1.4.1.orig/klogd.c sysklogd-1.4.1/klogd.c
|
||||
--- sysklogd-1.4.1.orig/klogd.c 2001-03-11 20:40:10.000000000 +0100
|
||||
+++ sysklogd-1.4.1/klogd.c 2007-06-18 13:22:06.978362000 +0200
|
||||
@@ -414,9 +414,11 @@
|
||||
{
|
||||
CloseLogSrc();
|
||||
Syslog(LOG_INFO, "Kernel log daemon terminating.");
|
||||
- sleep(1);
|
||||
- if ( output_file != (FILE *) 0 )
|
||||
+ if ( output_file != (FILE *) 0 ) {
|
||||
+ fflush(output_file);
|
||||
+ fsync(fileno(output_file));
|
||||
fclose(output_file);
|
||||
+ }
|
||||
closelog();
|
||||
#ifndef TESTING
|
||||
(void) remove_pid(PidFile);
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 18 13:43:58 CEST 2007 - coolo@suse.de
|
||||
|
||||
- don't sleep during boot - and rather sync the logfile
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 14 13:36:34 CEST 2007 - mt@suse.de
|
||||
|
||||
|
@ -19,7 +19,7 @@ PreReq: klogd
|
||||
Provides: syslog
|
||||
Autoreqprov: on
|
||||
Version: 1.4.1
|
||||
Release: 605
|
||||
Release: 614
|
||||
Summary: The Syslog daemon
|
||||
Source: sysklogd-1.4.1.tar.bz2
|
||||
Source1: logrotate.syslog
|
||||
@ -45,6 +45,7 @@ Patch14: sysklogd-1.4.1-showpri.patch
|
||||
Patch15: sysklogd-1.4.1-preserve_percents.patch
|
||||
Patch16: sysklogd-1.4.1-utf8.patch
|
||||
Patch17: sysklogd-1.4.1-ksym.patch
|
||||
Patch18: sysklogd-1.4.1-dontsleep.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
@ -106,6 +107,7 @@ Authors:
|
||||
%patch15 -p1 -b .presperc
|
||||
%patch16 -p1 -b .utf8
|
||||
%patch17 -p0 -b .ksym
|
||||
%patch18 -p1 -b .sleep
|
||||
%patch0 -p0
|
||||
%ifarch s390 s390x
|
||||
mv sample-s390.conf sample.conf
|
||||
@ -220,6 +222,8 @@ fi
|
||||
%{omc_svcdir}/syslog.xml
|
||||
|
||||
%changelog
|
||||
* Mon Jun 18 2007 - coolo@suse.de
|
||||
- don't sleep during boot - and rather sync the logfile
|
||||
* Mon May 14 2007 - mt@suse.de
|
||||
- Bug #256671: Changed default value of SYSLOG_DAEMON variable in
|
||||
/etc/sysconfig/syslog to "" (autodetect), adopted description.
|
||||
|
Loading…
Reference in New Issue
Block a user