[Top][All Lists]

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

Re: kvm problem with FreeBSD

From: stefan
Subject: Re: kvm problem with FreeBSD
Date: Fri, 6 Aug 2004 16:15:31 +0200 (CEST)
User-agent: SquirrelMail/1.4.3a-1


> Umm, we *are* using kvm_getargv() !
Yes, but what fails is the kvm_getenvv call.

> Anyway, I just went and took a look at the code, adn there is a comment
> at the top along the lines of:
>   /*
>    * Use the kvm library to open the kernel and read the environment and
>    * arguments. As we are not running as root we cannot open the memory
>    * device and thus we fake it using /dev/null. This is allowed under
>    * FreeBSD, but may fail on other operating systems which check the
>    * file type. The kvm calls used are those which are supposedly backward
>    * compatible with Solaris rather than being FreeBSD specific
>    */
> It might be that FreeBSD 5 is checking the file type of the memory
> device and thus failing as it does on Solaris ?

I can write a little test program when i'm at home. As mentioned before,
the problem occured after i updated gnustep from cvs last night. I disabled
kvm and now it works, what makes me wondering. I guess the proc system
is used when kvm is not used? Seems somewhat strange to me.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]