Re: [master] loader: always call klogctl to disable kernel logging in the console.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> diff --git a/loader/loader.c b/loader/loader.c
> index 2ef02d0..1726dc0 100644
> --- a/loader/loader.c
> +++ b/loader/loader.c
> @@ -1301,8 +1301,6 @@ static void restartSyslog(void) {
>          close(conf_fd);
>      }
>  
> -    /* rsyslog is going to take care of things, so disable console logging */
> -    klogctl(8, NULL, 1);
>      /* now we really start the daemon. */
>      int status = system("/bin/systemctl --quiet restart rsyslog.service");
>      if (status < 0 || 
> @@ -1967,6 +1965,8 @@ int main(int argc, char ** argv) {
>      cmdline = readvars_parse_file("/proc/cmdline");
>  
>      restartSyslog();
> +    /* disable console logging so we don't clog the ttys */
> +    klogctl(8, NULL, 1);
>  
>      /* check for development mode early */
>      if (cmdline && g_hash_table_lookup_extended(cmdline, "devel", NULL, NULL)) {

Good find.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux