Accepting request 28151 from home:jengelh:branches:Base:System

Copy from home:jengelh:branches:Base:System/syslogd via accept of submit request 28151 revision 3.
Request was accepted with message:
thanks!

OBS-URL: https://build.opensuse.org/request/show/28151
OBS-URL: https://build.opensuse.org/package/show/Base:System/syslogd?expand=0&rev=12
This commit is contained in:
2010-01-06 17:06:41 +00:00
committed by Git OBS Bridge
parent 8921250342
commit 2144a0b3f4
25 changed files with 334 additions and 230 deletions

View File

@@ -1,5 +1,7 @@
--- syslogd.c
+++ syslogd.c 2008-03-26 17:45:54.247851855 +0100
Index: syslogd.c
===================================================================
--- syslogd.c.orig 2009-11-24 18:12:55.787215000 +0100
+++ syslogd.c 2009-11-24 18:12:56.480126000 +0100
@@ -770,6 +770,9 @@ extern int errno;
int main(int argc, char **argv);
char **crunch_list(char *list);
@@ -158,16 +160,16 @@
+{
+ char buf[100];
+ leave++;
+
- int sig;
-
+ dprintf("syslogd: exiting on signal %d\n", sig);
+ (void) snprintf(buf, sizeof(buf), "exiting on signal %d", sig);
+ errno = 0;
+ logmsg(LOG_SYSLOG|LOG_INFO, buf, LocalHostName, ADDDATE);
+ signal(sig, SIG_IGN);
+}
- int sig;
-
+
+void dienow(void)
{
register struct filed *f;