lp:~upstart-devel/upstart/stateful-reexec

Created by James Hunt and last modified
Get this branch:
bzr branch lp:~upstart-devel/upstart/stateful-reexec
Members of Upstart Developers can upload to this branch. Log in for directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Upstart Developers
Project:
upstart
Status:
Merged

Recent revisions

1476. By James Hunt

* extra/man/upstart-udev-bridge.8: Corrected explanation of actions in
  udev events (thanks to Stefan Bader for pointing out this problem).
* init/blocked.c: blocked_type_str_to_enum(): Assert argument.
* init/job_class.c: job_class_expect_type_str_to_enum(): Assert
  argument.
* init/job_process.c: job_process_run(): Reverted unnecessary check on 'p'.
* init/log.c: log_deserialise(): Added cast and explanation why return code
  from state_toggle_cloexec() not checked.
* init/process.c: process_type_str_to_enum(): Assert argument.
* init/session.c:
  - session_create_conf_source(): Removed redundant getenv() call.
  - session_deserialise(): Removed incorrect uid_t initialisation.
* init/state.h:
  - state_get_json_str_array_generic(): Actually use env parameter.
  - Remove warn_unused_result from state_toggle_cloexec() to avoid compile
    failure with strict flags.
* init/tests/test_state.c:
  - Use rlim_t.
  - test_enums():
    - Don't call *_str_to_enum() if previous *_enum_to_str() failed.
    - Add additional checks for invalid enum values.
  - main(): Remove redundant setenv().
* init/tests/test_util.c: string_check(): Make initial test less
  cryptic.

1475. By James Hunt

* init/job_class.c: Formatting.
* init/log.c: Corrected documentation for log_unflushed_files.
* init/state.h: Explained why log_unflushed_files is not currently
  serialised.

1473. By James Hunt

Upstream sync.

1472. By James Hunt

* Changelog: Summary of stateful re-exec feature.
* util/man/telinit.8: Removed warning about using 'telinit u'.

1471. By James Hunt

Tidy up.

1470. By James Hunt

* init/tests/test_job_process.c:
  - New macro CHECK_FILE_EQ() to repeatedly check for expected file contents.
  - main(): Make parent wait for child in fork mode.
  - Converted appropriate TEST_FILE_EQ() calls to CHECK_FILE_EQ() to
    fix problem resulting from peculiar but permissible kernel behaviour
    (LP: #1066351).
* init/tests/test_util.h: New macros:
  - TEST_WATCH_UPDATE_TIMEOUT_SECS().
  - TEST_FORCE_WATCH_UPDATE_TIMEOUT_SECS().

1469. By James Hunt

tidy up

1468. By James Hunt

* init/job.c: job_serialise_all(): Typo.
* util/tests/test_initctl.c:
  - WAIT_FOR_UPSTART(): Fix nasty bug where session bus rather than the
    *test* session bus was being checked. Added extra check.
  - _START_UPSTART: Added extra check.
  - KILL_UPSTART: Added extra check.
  - job_to_pid(): Handle failure gracefully which makes function more
    useful for caller. Free regex.
  - test_reexec(): Improved test "single job producing output across a
    re-exec".

1467. By James Hunt

* util/tests/test_initctl.c:
  - START_UPSTART: Fix check for @confdir and @logdir.
  - CREATE_FILE: Treat @contents safely.
  - job_to_pid(): New function.
  - test_reexec(): New function with signle complex test:
    "single job producing output across a re-exec"

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:upstart
This branch contains Public information 
Everyone can see this information.