Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 261011 - net-misc/networkmanager-0.6.6 outputs its message to current tty
Summary: net-misc/networkmanager-0.6.6 outputs its message to current tty
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Steev Klimaszewski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-03 03:12 UTC by Yang Zhang
Modified: 2009-03-06 03:46 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yang Zhang 2009-03-03 03:12:54 UTC
The net-misc/networkmanager-0.6.6 prints a lot of debug message to current active console tty. When I started the daemon and then switched to tty2 (already loged in), A message "NetworkManager: <info> DHCP daemon state is now 1 (starting) for interface eth0" poped out in the tty. I then switched to tty1, A message "NetworkManager: <info> DHCP daemon state is now 2 (bound) for interface eth0" poped out where the cursur was. After a while, I got my tty1 filled with the NetworkManager infos. However, when I then switched to tty2, there was only the "now 1" message. It seems that NetworkManager tends to prints its current log message to the current active console tty. 

Reproducible: Always




The message is printed by a call nm_info in nm_device.c. The nm_info is actually g_message(...). So it is really strange that the g_message call outputs its message to the current tty.
Comment 1 Yang Zhang 2009-03-04 03:13:29 UTC
Thanks to Dan Williams' help, Just start the syslog daemon and everything works just fine. So it is strage that the NetworkManager script does not require syslog to start while it uses the functionality of syslog. We may fix this by adding a dependency for /etc/init.d/NetworkManager. 

see http://bugzilla.gnome.org/show_bug.cgi?id=573857 for more information.
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-03-05 19:24:35 UTC
Well this can be argued if an app's init script should really depend on syslog. I remember that I found some services on one of my machines which show the same behavior and I didn't consider their init-scripts to be buggy.
I'd say this is up to a machine's admin to resolve such kind of "inconvenience".

Anyway, reassigning to/CCing maintainers as they may have a different opinion about this. 
Comment 3 Robert Buchholz (RETIRED) gentoo-dev 2009-03-06 01:55:22 UTC
The NetworkManager works without syslog, as you described. Depending on the init script would mean NM requires a logger to run, and that is not the case. If you don't want to see every second service's messages on your console, start syslog as described in the handbook.
Comment 4 Yang Zhang 2009-03-06 03:46:03 UTC
(In reply to comment #3)
> The NetworkManager works without syslog, as you described. Depending on the
> init script would mean NM requires a logger to run, and that is not the case.
> If you don't want to see every second service's messages on your console, start
> syslog as described in the handbook.
> 

Thanks. So this may not be considered a bug actually. It only causes inconvenience.