[patch] DBUS System Activation II
Richard Hughes
hughsient at gmail.com
Mon Jun 18 16:52:53 PDT 2007
On Mon, 2007-06-18 at 18:27 -0400, Havoc Pennington wrote:
> Hi,
>
> Richard Hughes wrote:
> > If we still return a numeric error code (to avoid rewriting large chunks
> > of the dbus-spawn code) then we can still communicate a meaningful
> > message to the user.
>
> Sounds like a reasonable approach for now, better than nothing. Rather
> than adding activation-specific stuff to
> _dbus_babysitter_set_child_exit_error() I would probably add
> _dbus_babysitter_get_child_exit_status() and then process the status in
> activation.c. (Or something like that.)
Hmm, I'm not sure I follow. You want the spawn code to call into the
activation code?
> You'll need a header with your status<->error mapping to share between
> the activation helper and activation.c.
Sure, I've done this in the attached patch. Yell if the error names are
wrong, I'm usually pretty bad at choosing names for this sort of
thing :-)
Richard.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dbus-spawn-error.patch
Type: text/x-patch
Size: 10320 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20070619/c09bebea/attachment-0001.bin
More information about the dbus
mailing list