lp:~upstart-devel/upstart/bug-1124384-with-debug-for-reexec

Created by Dimitri John Ledkov on 2013-04-30 and last modified on 2013-04-30
Get this branch:
bzr branch lp:~upstart-devel/upstart/bug-1124384-with-debug-for-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:
Development

Recent revisions

1479. By Dimitri John Ledkov on 2013-04-30

wip

1478. By James Hunt on 2013-04-30

* init/event.c: event_deserialise(): Fix incorrect calls for failed and
  blockers Event attributes.

1477. By James Hunt on 2013-04-30

* init/event.c: event_deserialise(): Preserve the pre-reexec blockers
  count until JobClasses are deserialised and reverse-dependencies
  resolved.

1476. By James Hunt on 2013-04-30

* init/tests/test_state.c: test_job_class_serialise(): Ensure that all
  JobClasses get serialised, regardless of whether they have any
  associated Jobs.

1475. By James Hunt on 2013-04-30

* init/job.c: job_serialise_all(): Really serialise all JobClasses,
* init/main.c: Add 'write-state-file' command-line option.
  regardless of whether they have associated Jobs.
* init/paths.h: Added STATE_FILE_ENV.
* init/state.c: state_read_objects(): Write state file if 'write-state-file'
  specified or STATE_FILE_ENV set.
* init/state.h: Comments.

1474. By James Hunt on 2013-04-30

[ Dmitrijs Ledkovs <email address hidden> ]

* init/tests/test_conf.c:
  test_source_reload(): Check that the 'start on' EventOperator nodes
  are of the expected types and with the expected values.

1473. By James Hunt on 2013-04-30

* init/conf.c:
  - conf_reload(): Explanation of how reload works.
  - conf_reload_path(): Defer destruction of original ConfFile until
    newly-loaded .conf file has a chance to reference any events its
    'start on' condition requires (LP: 1124384).
  - debug_show_jobs(): Return if no instances.
  - debug_show_events(): New function.
* init/event.c: Comments.
* init/job.c: Comment.
* init/job_class.c:
  - job_class_get_registered(): New function resulting from refactor of
    job_class_consider() and job_class_reconsider().
  - job_class_consider():
    - Use job_class_get_registered().
    - Call job_class_event_block() to avoid premature event destruction.
  - job_class_reconsider(): Use job_class_get_registered().
  - job_class_event_block(): New function to increase reference count
    for events new JobClass specifies in its 'start on' condition that
    old JobClass has also referenced (LP: #1124384).
* init/tests/test_conf.c:
  - test_source_reload(): New tests:
    - "ensure reload does not destroy a blocked event used by another job"
    - "ensure .conf reload causes waiting job to run when 'start on' matches"
* init/tests/test_conf.h: TEST_ENSURE_CLEAN_ENV(): Check
  nih_child_watches too.

1472. By James Hunt on 2013-04-02

* extra/man/file-event.7: Correct EVENT values in examples.
* extra/man/upstart-event-bridge.8:
  - Corrected bridge name.
  - Explain that blocking semantics of system jobs not retained.

1471. By James Hunt on 2013-03-28

* init/job_process.[ch]: Remove unused
  JOB_PROCESS_ERROR_OPENPT_MASTER.

1470. By James Hunt on 2013-03-28

* extra/upstart-event-bridge.c: main():
  - Handle daemon pidfile as the upstart-event-bridge does.
  - Write to stdout, not syslog.

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.