X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=bus%2Factivation-helper-bin.c;h=a360acc725ca50b8df584a31c76d25e191b1b353;hb=459c9ff1543cfe1f8008af02ce5edcb3942d69de;hp=6b9ec1f5809f63620a684c6a2401ac0f2232866b;hpb=f4082146e91014c56c6215fb4e471f9f1baa8f60;p=platform%2Fupstream%2Fdbus.git diff --git a/bus/activation-helper-bin.c b/bus/activation-helper-bin.c index 6b9ec1f..a360acc 100644 --- a/bus/activation-helper-bin.c +++ b/bus/activation-helper-bin.c @@ -18,7 +18,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * */ @@ -56,7 +56,15 @@ convert_error_to_exit_code (DBusError *error) if (dbus_error_has_name (error, DBUS_ERROR_SPAWN_EXEC_FAILED)) return BUS_SPAWN_EXIT_CODE_EXEC_FAILED; + if (dbus_error_has_name (error, DBUS_ERROR_INVALID_ARGS)) + return BUS_SPAWN_EXIT_CODE_INVALID_ARGS; + + if (dbus_error_has_name (error, DBUS_ERROR_SPAWN_CHILD_SIGNALED)) + return BUS_SPAWN_EXIT_CODE_CHILD_SIGNALED; + /* should we assert? */ + fprintf(stderr, "%s: %s\n", error->name, error->message); + return BUS_SPAWN_EXIT_CODE_SETUP_FAILED; }