The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* Modern 2.6 kernels - Notification for changing hostname from proc/sys/kernel/hostname ?
@ 2008-05-19 17:16 Shawn Starr
  2008-05-19 20:45 ` Alexey Dobriyan
  0 siblings, 1 reply; 4+ messages in thread
From: Shawn Starr @ 2008-05-19 17:16 UTC (permalink / raw)
  To: linux-kernel

Hello, 

I was looking at utsname_sysctl.c (if this is the right place) and noticed 
there doesn't seem to be any notification via the connector bus to tell 
userspace the hostname has changed? Is this correct?

if so, would not not make sense to add such event triggers so that things like 
KDE would not have to poll to determine if the hostname changes and instead 
had D-BUS tell userspace the hostname changed?

Perhaps this could be applied to other values (where applicable) 
in /proc/sys/kernel?

Or is this all going to go into sysfs eventually (where some of this really 
might belong)

Thoughts?

Thanks, 
Shawn.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Modern 2.6 kernels - Notification for changing hostname from proc/sys/kernel/hostname ?
  2008-05-19 20:45 ` Alexey Dobriyan
@ 2008-05-19 20:05   ` Shawn Starr
  2008-05-21  9:38     ` Jan Engelhardt
  0 siblings, 1 reply; 4+ messages in thread
From: Shawn Starr @ 2008-05-19 20:05 UTC (permalink / raw)
  To: Alexey Dobriyan; +Cc: linux-kernel

On Monday 19 May 2008 04:45:35 pm Alexey Dobriyan wrote:
> On Mon, May 19, 2008 at 01:16:12PM -0400, Shawn Starr wrote:
> > I was looking at utsname_sysctl.c (if this is the right place) and
> > noticed there doesn't seem to be any notification via the connector bus
> > to tell userspace the hostname has changed? Is this correct?
>
> Yes. No notifications.
>
> > if so, would not not make sense to add such event triggers so that things
> > like KDE would not have to poll to determine if the hostname changes and
> > instead had D-BUS tell userspace the hostname changed?
>
> Why does it want to know if and when hostname changes?
>
Well, It's for keeping track of the X session, if the hostname changes things 
go bad.

> > Perhaps this could be applied to other values (where applicable)
> > in /proc/sys/kernel?
>
> Probably, what other stuff desktop crowd wants?

No idea on the other values, but maybe others can jump in on this discussion?

>
> > Or is this all going to go into sysfs eventually (where some of this
> > really might belong)
>
> Hopefully, not. There is already uname(2), sysctls -- proc and binary,

Hopefully this can all be cleaned up, we really should have one unified place 
for kernel tweaking/settings either /proc or /sys.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Modern 2.6 kernels - Notification for changing hostname from proc/sys/kernel/hostname ?
  2008-05-19 17:16 Modern 2.6 kernels - Notification for changing hostname from proc/sys/kernel/hostname ? Shawn Starr
@ 2008-05-19 20:45 ` Alexey Dobriyan
  2008-05-19 20:05   ` Shawn Starr
  0 siblings, 1 reply; 4+ messages in thread
From: Alexey Dobriyan @ 2008-05-19 20:45 UTC (permalink / raw)
  To: Shawn Starr; +Cc: linux-kernel

On Mon, May 19, 2008 at 01:16:12PM -0400, Shawn Starr wrote:
> I was looking at utsname_sysctl.c (if this is the right place) and noticed 
> there doesn't seem to be any notification via the connector bus to tell 
> userspace the hostname has changed? Is this correct?

Yes. No notifications.

> if so, would not not make sense to add such event triggers so that things like 
> KDE would not have to poll to determine if the hostname changes and instead 
> had D-BUS tell userspace the hostname changed?

Why does it want to know if and when hostname changes?

> Perhaps this could be applied to other values (where applicable) 
> in /proc/sys/kernel?

Probably, what other stuff desktop crowd wants?

> Or is this all going to go into sysfs eventually (where some of this really 
> might belong)

Hopefully, not. There is already uname(2), sysctls -- proc and binary,


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Modern 2.6 kernels - Notification for changing hostname from proc/sys/kernel/hostname ?
  2008-05-19 20:05   ` Shawn Starr
@ 2008-05-21  9:38     ` Jan Engelhardt
  0 siblings, 0 replies; 4+ messages in thread
From: Jan Engelhardt @ 2008-05-21  9:38 UTC (permalink / raw)
  To: Shawn Starr; +Cc: Alexey Dobriyan, linux-kernel


On Monday 2008-05-19 22:05, Shawn Starr wrote:
>>
>> Why does it want to know if and when hostname changes?
>>
>Well, It's for keeping track of the X session, if the hostname changes things 
>go bad.

Then these should be resolved. Sometimes, even setting just the time
with ntpdate makes X go blank for a few seconds, or even exit.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-05-21  9:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-19 17:16 Modern 2.6 kernels - Notification for changing hostname from proc/sys/kernel/hostname ? Shawn Starr
2008-05-19 20:45 ` Alexey Dobriyan
2008-05-19 20:05   ` Shawn Starr
2008-05-21  9:38     ` Jan Engelhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox