* Corrected Standards-Version to 2.3.0.1 (Bug#16769)

* Reworked one line of an older patch because it prevented syslogd from
    binding the socket with the result that no messages were forwarded to
    other hosts.
  * Changed the behaviour of klogd when receiving a terminate signal. Now
    the program terminates immediately instead of completing the receipt of
    a kernel message.  (Bug#16796, Bug#16828, Bug#16148)
  * Noticed a bug which was closed by 1.3-18 (Bug#14776)
  * Changed Maintainer address to joey@debian.org
This commit is contained in:
Joey Schulze 1998-01-09 00:03:55 +00:00
parent 05c061eaa5
commit f1bddb54ec
2 changed files with 16 additions and 4 deletions

11
klogd.c
View File

@ -174,6 +174,14 @@
* Thu Aug 21 12:11:27 MET DST 1997: Martin Schulze <joey@infodrom.north.de> * Thu Aug 21 12:11:27 MET DST 1997: Martin Schulze <joey@infodrom.north.de>
* Fixed little mistake which prevented klogd from accepting a * Fixed little mistake which prevented klogd from accepting a
* console log * console log
*
* Fri Jan 9 00:39:52 CET 1998: Martin Schulze <joey@infodrom.north.de>
* Changed the behaviour of klogd when receiving a terminate
* signal. Now the program terminates immediately instead of
* completing the receipt of a kernel message, i.e the read()
* call. The old behaveiour could result in klogd being
* recognized as being undead, because it'll only die after a
* message has been received.
*/ */
@ -308,8 +316,7 @@ void stop_daemon(sig)
int sig; int sig;
{ {
change_state = 1; Terminate();
terminate = 1;
return; return;
} }

View File

@ -317,7 +317,7 @@ static char sccsid[] = "@(#)syslogd.c 5.27 (Berkeley) 10/10/88";
* Sun Jun 15 16:23:29 MET DST 1997: Michael Alan Dorman * Sun Jun 15 16:23:29 MET DST 1997: Michael Alan Dorman
* Some more glibc patches made by <mdorman@debian.org>. * Some more glibc patches made by <mdorman@debian.org>.
* *
* Thu Jan 1 16:04:52 CET 1998: Martin Schulze * Thu Jan 1 16:04:52 CET 1998: Martin Schulze <joey@infodrom.north.de
* Applied patch from Herbert Thielen <Herbert.Thielen@lpr.e-technik.tu-muenchen.de>. * Applied patch from Herbert Thielen <Herbert.Thielen@lpr.e-technik.tu-muenchen.de>.
* This included some balance parentheses for emacs and a bug in * This included some balance parentheses for emacs and a bug in
* the exclamation mark handling. * the exclamation mark handling.
@ -325,6 +325,11 @@ static char sccsid[] = "@(#)syslogd.c 5.27 (Berkeley) 10/10/88";
* Fixed small bug which caused syslogd to write messages to the * Fixed small bug which caused syslogd to write messages to the
* wrong logfile under some very rare conditions. Thanks to * wrong logfile under some very rare conditions. Thanks to
* Herbert Xu <herbert@gondor.apana.org.au> for fiddling this out. * Herbert Xu <herbert@gondor.apana.org.au> for fiddling this out.
*
* Thu Jan 8 22:46:35 CET 1998: Martin Schulze <joey@infodrom.north.de>
* Reworked one line of the above patch as it prevented syslogd
* from binding the socket with the result that no messages were
* forwarded to other hosts.
*/ */
@ -849,7 +854,7 @@ int main(argc, argv)
(char *) &on, sizeof(on)) < 0 ) { (char *) &on, sizeof(on)) < 0 ) {
logerror("setsockopt, suspending inet"); logerror("setsockopt, suspending inet");
} }
else if (AcceptRemote) { else {
if (bind(finet, (struct sockaddr *) &sin, \ if (bind(finet, (struct sockaddr *) &sin, \
sizeof(sin)) < 0) { sizeof(sin)) < 0) {
logerror("bind, suspending inet"); logerror("bind, suspending inet");