lp:~jamesodhunt/upstart/bug-530779-with-formatting-changes
- Get this branch:
- bzr branch lp:~jamesodhunt/upstart/bug-530779-with-formatting-changes
Branch merges
Branch information
Recent revisions
- 1544. By James Hunt
-
* init/job.c: job_deserialise(): Handle downgrade scenario as best
we can rather than forcing a stateless re-exec.
* init/process.c: process_deserialise_ all(): Handle downgrade scenario
as best we can (fixes a bug where downgrading could cause an assertion
failure).
* init/process.h: Comments for ProcessType (which must be kept
in order).
* init/tests/test_job_ process. c: test_run():
- Rename test:
"full double-fork daemon test where parent waits for ultimate child"
to the following for clarity:
"with daemon where parent waits for ultimate child before exiting"
- Check if PR_SET_CHILD_SUBREAPER available and skip if not.
- Pass --final-action to test_damon to make it SIGSTOP.
- Improved waitid() return check.
* test/test_daemon.c:
- Added --final-action option to allow final behaviour to be set
explicitly.
* test/test_util_common. c: Reverted whitespace changes at reviewers
request. - 1543. By James Hunt
-
* init/tests/
data/upstart- 1.12.json: New test data file.
* test/test_daemon.c: New test utility.
* init/Makefile.am: Add "upstart-1.12.json" .
* init/job.c:
- Updated copyright.
- job_deserialise(): Generalise logic to handle missing pids when
upgrading from a version that does not support PROCESS_SECURITY and
PROCESS_DAEMON_ PARENT.
* init/job_process.c: Copyright and comments.
* init/process.c:
- process_name(): Added PROCESS_DAEMON_ PARENT for completeness.
- process_from_name( ): Added PROCESS_ DAEMON_ PARENT for completeness.
- process_deserialise_ all(): Generalise logic to handle missing pids
when upgrading from a version that does not support PROCESS_SECURITY and
PROCESS_DAEMON_ PARENT.
- process_type_enum_ to_str( ): Added PROCESS_ DAEMON_ PARENT for completeness.
- process_type_str_ to_enum( ): Added PROCESS_ DAEMON_ PARENT for completeness.
* init/tests/test_job_ process. c:
- test_run(): Added new test that makes use of test_daemon.c:
- "full double-fork daemon test where parent waits for ultimate child".
- test_spawn(): Remove temp files.
- test_kill(): Extra checks.
- test_handler(): Remove erroneous UPSTART_LOGDIR code - not used by this test.
* init/tests/test_state. c:
- test_job_environ_ upgrade( ): Add additional checks to ensure that
json not containing PROCESS_DAEMON_ PARENT elements correctly deserialises
into empty elements.
- test_daemon_parent_ state() : New test that checks a data file containing
jobs with and without PROCESS_DAEMON_ PARENTS can be deserialised.
* test/Makefile.am: Updated for test_daemon.
* test/test_util_common. c:
- _start_upstart(): Set Session Init name to "test_init" for
consistency with TEST_DBUS() and to make it easier to distinguish from a
legitimate Session Init.
- get_test_daemon_ binary( ): New function.
- file_line_count(): New function.
* test/test_util_common. h: TIMED_BLOCK(): New utility macro. - 1541. By James Hunt
-
* init/job_process.c: job_process_
terminated( ):
- Ensure no state change occurs for EXPECT_DAEMON unless the daemon
has forked appropriately.
- Added back inadvertantly-dropped variable. - 1538. By James Hunt
-
* test/test_
util_common. c:
- set_upstart_session( ): Call get_initctl_ binary( ) rather than using
define value.
- get_initctl(): As above.
- get_initctl_binary( ): Check that file exists for parity with
get_upstart_ binary( ). - 1537. By James Hunt
-
* extra/upstart-
file-bridge. c:
- upstart_job_added( ): Make quieter in manner consistent with other
bridges (only display output in debug mode).
- upstart_job_removed( ): As above.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:upstart