dbus/bus/activation-exit-codes.h
Havoc Pennington 79d3004e26 2007-07-24 Havoc Pennington <hp@redhat.com>
* configure.in: add AM_PROG_CC_C_O to allow per-target CPPFLAGS

	* bus/dispatch.c (bus_dispatch_test_conf): Fix up setting
	TEST_LAUNCH_HELPER_CONFIG to include the full path, and enable
	test shell_fail_service_auto_start when use_launcher==TRUE

	* bus/activation-helper-bin.c (convert_error_to_exit_code): pass
	through the INVALID_ARGS error so the test suite works

	* bus/activation.c (handle_activation_exit_error): return
	DBUS_ERROR_NO_MEMORY if we get BUS_SPAWN_EXIT_CODE_NO_MEMORY

	* dbus/dbus-spawn.c (_dbus_babysitter_get_child_exit_status):
	return only the exit code of the child, not the entire thingy from
	waitpid(), and make the return value indicate whether the child
	exited normally (with a status code)

	* bus/bus.c (process_config_first_time_only): _dbus_strdup works
	on NULL so no need to check
	(process_config_every_time): move servicehelper init here, so we
	reload it on HUP or config file change

	* bus/Makefile.am (install-data-hook): remove comment because
	Emacs make mode seems to be grumpy about it
2007-07-24 22:11:00 +00:00

39 lines
1.6 KiB
C

/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
/* activation-exit-codes.h Return values for the launch helper which is set
* in the helper and read in dbus-spawn.
*
* Copyright (C) 2007 Red Hat, Inc.
*
* Licensed under the Academic Free License version 2.1
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* 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
*
*/
#ifndef BUS_ACTIVATION_EXIT_CODES_H
#define BUS_ACTIVATION_EXIT_CODES_H
/** Return codes from the launch helper - not public API */
#define BUS_SPAWN_EXIT_CODE_NO_MEMORY 1
#define BUS_SPAWN_EXIT_CODE_CONFIG_INVALID 2
#define BUS_SPAWN_EXIT_CODE_SETUP_FAILED 3
#define BUS_SPAWN_EXIT_CODE_NAME_INVALID 4
#define BUS_SPAWN_EXIT_CODE_SERVICE_NOT_FOUND 5
#define BUS_SPAWN_EXIT_CODE_PERMISSIONS_INVALID 6
#define BUS_SPAWN_EXIT_CODE_FILE_INVALID 7
#define BUS_SPAWN_EXIT_CODE_EXEC_FAILED 8
#define BUS_SPAWN_EXIT_CODE_INVALID_ARGS 9
#endif /* BUS_ACTIVATION_EXIT_CODES_H */