[LAD] Summercode 2008: LASH as a D-Bus service

Bob Ham rah at bash.sh
Tue Jan 22 19:10:55 UTC 2008


On Tue, 2008-01-22 at 20:58 +0200, Nedko Arnaudov wrote:
> Bob Ham <rah at bash.sh> writes:
> 
> > On Tue, 2008-01-22 at 18:56 +0200, Juuso Alasuutari wrote:
> >> On Tuesday 22 January 2008 15:39:20 Nedko Arnaudov wrote:
> >
> >> Capturing the clients' debug messages would indeed be helpful. How do you 
> >> think it should be handled?
> >
> >> Idiot-proof capturing of stdout/err could probably only work if the client 
> >> process was executed from a wrapper. It could be accomplished with the D-Bus 
> >> service file, though. If all clients' service files would be mandated to 
> >> include something like "Exec=/usr/bin/lash_exec /usr/bin/foobar", then... 
> >> Umm, at least we could redirect the streams _somewhere_ -- but what to do 
> >> from thereon, I'm not sure.
> >
> > Applications are already launched from a wrapper within lashd (what it
> > terms the "loader".)  It calls fork() and exec().  The only thing that
> > needs to be done is to change stdout and stderr to point to a log file
> > after calling fork() and before calling exec().  The appropriate place
> > for the file would be the application's directory under the project
> > directory.
> 
> Not just that, I want to know what app outputed what. If their out goes
> to common log file, we need prefixing.

Each connected LASH client has its own directory under the main LASH
project directory.  By redirecting each client's output to a file in its
client-specific directory, there would be no common log file.

Bob

-- 
Bob Ham <rah at bash.sh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.linuxaudio.org/pipermail/linux-audio-dev/attachments/20080122/e324fb0e/attachment.pgp>


More information about the Linux-audio-dev mailing list