DBusBabysitter: change executable to log_name
authorChengwei Yang <chengwei.yang@intel.com>
Tue, 15 Oct 2013 05:04:53 +0000 (13:04 +0800)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 1 Nov 2013 12:40:41 +0000 (12:40 +0000)
commitec6ea1a6a8ad1d5e3c1280a55207e9b4f5742814
treef296d80fd62514673f05202321047d7a371639a0
parentf110f0011600f80bb50a9037e5fdcf5296fc1fde
DBusBabysitter: change executable to log_name

DBusBabysitter->executable is defined as executable name to use in error
messages. However, if servicehelper used, then the executable name is
servicehelper. It's not much help because we couldn't figure out which
service we're trying to activated if error happens.

In the following patch, we'll use service name to be activated as the
child log identifier and add a parameter to
_dbus_spawn_async_with_babysitter() to pass the log identifier.  Since
this is not the case in test, so executable changed to log_name.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=68559
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
bus/activation.c
dbus/dbus-spawn-win.c
dbus/dbus-spawn.c
dbus/dbus-spawn.h
test/spawn-test.c