]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Fix klogd fails on xen-kernel.
authorArne Fitzenreiter <arne_f@ipfire.org>
Wed, 20 Jan 2010 19:38:42 +0000 (20:38 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Wed, 20 Jan 2010 19:38:42 +0000 (20:38 +0100)
config/rootfiles/core/35/filelists/files
lfs/sysklogd
src/patches/sysklogd-1.4.1_xen_empty_buffer_check.patch [new file with mode: 0644]

index c9d1fa6f929222bd58377769b16854439580e7ba..f4df3034a6e1ed1616a03139752665a4977d4741 100644 (file)
@@ -14,3 +14,4 @@ lib/modules/2.6.27.42-ipfire-xen/kernel/net/ieee80211/ieee80211_crypt_wep.off
 srv/web/ipfire/cgi-bin/outgoingfw.cgi
 var/ipfire/outgoing/bin/outgoingfw.pl
 usr/bin/squidGuard
+usr/sbin/klogd
index 4c762839b6b9f156b9ab8a4cea0ace8a347a028e..9a4fda9daff8b93ec8dc380d1f78435fa1854d3e 100644 (file)
@@ -72,6 +72,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
        cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/$(THISAPP)-fixes-1.patch
        cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/$(THISAPP)-8bit-1.patch
+       cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/$(THISAPP)_xen_empty_buffer_check.patch
        cd $(DIR_APP) && make $(MAKETUNING)
        cd $(DIR_APP) && make install
        touch /var/log/{dhcpcd.log,messages,ovpnserver.log}
diff --git a/src/patches/sysklogd-1.4.1_xen_empty_buffer_check.patch b/src/patches/sysklogd-1.4.1_xen_empty_buffer_check.patch
new file mode 100644 (file)
index 0000000..3aece3a
--- /dev/null
@@ -0,0 +1,30 @@
+diff -Naur sysklogd-1.4.1.org/klogd.c sysklogd-1.4.1/klogd.c
+--- sysklogd-1.4.1.org/klogd.c 2001-03-11 20:40:10.000000000 +0100
++++ sysklogd-1.4.1/klogd.c     2010-01-20 19:49:36.000000000 +0100
+@@ -1171,10 +1171,24 @@
+               switch ( logsrc )
+               {
+                       case kernel:
+-                              LogKernelLine();
++                              if (ksyslog(9, NULL, 0)>0)
++                              {
++                                      LogKernelLine();
++                              }
++                              else
++                              {
++                                      usleep(100000);
++                              }
+                               break;
+                       case proc:
+-                              LogProcLine();
++                              if (ksyslog(9, NULL, 0)>0)
++                              {
++                                      LogProcLine();
++                              }
++                              else
++                              {
++                                      usleep(100000);
++                              }
+                               break;
+                       case none:
+                               pause();