Re: [Ganglia-developers] Re: [Ganglia-general] gmond error on Solaris8/SPARK

2004-11-24 Thread Brooks Davis
On Wed, Nov 24, 2004 at 11:49:23AM +, Matt Massie wrote: > i think it's good practice that when an application daemonizes that it > close all open file descriptors that it inherits from the parent... not > just stdin, stdout, stderr. it's also important that (at least on > freebsd) that the me

[Ganglia-developers] Re: [Ganglia-general] gmond error on Solaris8/SPARK

2004-11-24 Thread Matt Massie
sangghyun- all kvm_ calls are now gone from ganglia on solaris for the next release (2.5.8) coming to theatres near you in the very near future. the solaris code has been rewritten to use kstat. your feedback has resulted in code changes though. i think it's good practice that when an applicati

Re: [Ganglia-developers] Re: [Ganglia-general] gmond error on Solaris8/SPARK

2004-11-24 Thread Martin Knoblauch
Hello Sanghyun, the new Solaris code in 2.5.8 will no longer use any "kvm_" routines. All will be done via "kstat" and there is no more need to run as root on that platform. Martin --- Sanghyun Hong <[EMAIL PROTECTED]> wrote: > Hi, Matt > > Thanks for your opinion. > Today, I execute some test

[Ganglia-developers] Re: [Ganglia-general] gmond error on Solaris8/SPARK

2004-11-23 Thread Sanghyun Hong
Hi, Matt Thanks for your opinion. Today, I execute some test-code for kvm_fn and daemon; so, my opinion is that kvm_fn used to file descriptor. On solaris, current code is closing all file descriptors after metric_init. It's cause the problem that being usable file descriptor be forced to close.

Re: [Ganglia-developers] Re: [Ganglia-general] gmond error on Solaris8/SPARK

2004-11-23 Thread Brooks Davis
On Tue, Nov 23, 2004 at 10:15:58AM +, Matt Massie wrote: > thanks for submitting this bug fix but i'm not sure what problem it > solves. the code that you have submitted below would not close all file > descriptor after fork but rather would only close 0,1 and 2 > (stdin,stdout,stderr). are y

[Ganglia-developers] Re: [Ganglia-general] gmond error on Solaris8/SPARK

2004-11-23 Thread Matt Massie
thanks for submitting this bug fix but i'm not sure what problem it solves. the code that you have submitted below would not close all file descriptor after fork but rather would only close 0,1 and 2 (stdin,stdout,stderr). are you saying that kvm_read() passed data over a file descriptor? if so,