Copy from Base:System/syslogd based on submit request 25079 from user msmeissn OBS-URL: https://build.opensuse.org/request/show/25079 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/syslogd?expand=0&rev=22
19 lines
566 B
Diff
19 lines
566 B
Diff
Index: klogd.c
|
|
===================================================================
|
|
--- klogd.c.orig 2009-11-24 18:12:55.564210000 +0100
|
|
+++ klogd.c 2009-11-24 18:12:56.247123000 +0100
|
|
@@ -416,9 +416,11 @@ static void Terminate()
|
|
{
|
|
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);
|