Thannks, now I changed my program to:
#include <unistd.h>
int main(int argc, char *argv[])
{
setenv("OPENHPI_DEBUG", "YES");
setenv("OPENHPI_TRACE", "YES");
execv("/etc/init.d/openhpid", argv);
return 0;
}
but it still doesn't work, I still don't see any messages written to stderr.
On Mon, Oct 6, 2008 at 3:59 PM, Vaupotic Marko <
[EMAIL PROTECTED]> wrote:
> Use OPENHPI_DEBUG and OPENHPI_TRACE variables as defined in
> include/oh_error.h
>
> Marko
>
> > Hello,
> > I looked at the source of the openhpi daemon and saw that it has dbg and
> trace messages.
> > Is there a way to see these messages?
> > I tried to do it by writing the following program:
> >
> > #include <unistd.h>
> >
> > int main(int argc, char *argv[])
> > {
> > setenv("OH_DBG", "YES");
> > setenv("OH_TRACE", "YES");
> > execv("/etc/init.d/openhpid", argv);
> > return 0;
> > }
> >
> > but it didn't work, I still don't see any messages written to stderr.
> >
> > Thanks
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Openhpi-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openhpi-devel
>
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Openhpi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openhpi-devel