[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-dbus
Subject:    Re: about auto-activated services
From:       Colin Walters <walters () verbum ! org>
Date:       2009-06-02 13:47:00
Message-ID: faa16b610906020646r3b33c338m45976e464bdc2719 () mail ! gmail ! com
[Download RAW message or body]

2009/6/2 Edison_lin-ªL«T¿« <edison_lin@gemtek.com.tw>:
> Hi,
> I send a signal to the dbus-daemon and the process not yet run is then
> brought up. But after that it seems that I couldn't communicate with that
> process. I can see the signal being sent to that process through
> dbus-monitor, but then nothing happened. The printf doesn't work.

The standard input, output, and error streams for activated services
will have been redirected to /dev/null I believe.  If inside your
service you want to get output from printf you'll need to open them
somewhere else such as a log file.

> I tried to
> use system("echo 1234 > /gotSignal"); but still no effect.

My guess with that command is that you don't have permissions to
create new files in the root directory on your OS.  Try instead
writing to say "/tmp/myapp.log" for debugging purposes.  For system
services you could use syslog or another logging facility.
_______________________________________________
dbus mailing list
dbus@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dbus

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic