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
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
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
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.
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
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,