Accepting request 24994 from home:elvigia:branches:Base:System

Copy from home:elvigia:branches:Base:System/syslogd via accept of submit request 24994 revision 2.
Request was accepted with message:
ok

OBS-URL: https://build.opensuse.org/request/show/24994
OBS-URL: https://build.opensuse.org/package/show/Base:System/syslogd?expand=0&rev=10
This commit is contained in:
2009-11-25 15:23:34 +00:00
committed by Git OBS Bridge
parent b4bd1daa32
commit 53bbc01f78
25 changed files with 289 additions and 213 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;