lp:~jamesodhunt/upstart/upstream-add-session-bus-support

Created by James Hunt and last modified
Get this branch:
bzr branch lp:~jamesodhunt/upstart/upstream-add-session-bus-support
Only James Hunt can upload to this branch. If you are James Hunt please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
James Hunt
Project:
upstart
Status:
Merged

Recent revisions

1285. By James Hunt

Add D-Bus session support to initctl.

* Changelog: Updated.
* util/initctl.c:
  - Added "--session" command-line option.
  - dbus_bus_type_setter(): New function used by option parser to
    distinguish system/session D-Bus bus type.
  - system_bus variable now replaced by two others: use_dbus (boolean)
    and dbus_bus_type.
  - upstart_open(): Updated to handle multiple D-Bus bus types.
* util/man/initctl.8: Update for "--session" option.
* util/tests/test_initctl.c: Updated to make use of use_dbus and
  dbus_bus_type rather than system_bus.

1284. By James Hunt

Upstream merge.

1283. By James Hunt

Add command-line option to use D-Bus session bus (for testing).

* init/control.c:
  - Added new boolean use_session_bus.
  - Updated comments.
  - control_handle_bus_type(): New function to allow selection of
    session bus via env var "UPSTART_USE_SESSION_BUS".
    Also logs use of session bus if use_session_bus set.
  - control_bus_open(): Now connects to either D-Bus system bus or session bus.
* init/control.h: New define for USE_SESSION_BUS_ENV.
* init/main.c: Addition of "--session" command-line option.
* init/man/init.8: Update for new "--session" command-line option.

1282. By Scott James Remnant (Canonical)

* init/job_class.h (JobClass): Add kill signal member
* init/job_class.c (job_class_new): Initialise kill signal
* init/tests/test_job_class.c (test_new): Check kill signal initialised
correctly.
* init/system.c (system_kill): Change to accept a signal rather than
a boolean.
* init/system.h: Update prototype
* init/tests/test_system.c (test_kill): Update tests to pass signals
by value.
* init/job_process.c (job_process_kill, job_process_kill_timer): Pass
the configured kill signal, or SIGKILL, to the function rather than
TRUE/FALSE.
* init/parse_job.c (stanza_kill): Add parsing for kill signal.
* init/tests/test_parse_job.c (test_stanza_kill): Check parsing works
* init/errors.h: Add illegal signal error and string.
* init/man/init.5: Update documentation

1281. By Scott James Remnant (Canonical)

* init/job_class.h (JobClass): Replace oom_adj with oom_score_adj
* init/job_class.c (job_class_new): Replace oom_adj with oom_score_adj.
* init/job_process.c (job_process_spawn): Write the new score
adjustment, falling back to calculating and writing the old value if
necessary.
* init/parse_job.c (stanza_oom): Parse both the new and old values,
converting the old value to the new value if present.
* init/errors.h: Add new error string.
* init/man/init.5: Documentation update.
* init/tests/test_job_class.c (test_new): Update check.
* init/tests/test_parse_job.c (test_stanza_oom): Update tests.

1280. By Scott James Remnant (Canonical)

* init/job_process.c (job_process_run): Always make the shell script
fd 9, since that's the highest that shells are required by POSIX to
support. Pass the file descriptor to job_process_spawn()
(job_process_run): Accept the extra file descriptor, moving it to fd 9.
(job_process_error_read): Add handling for error condition.
* init/job_process.h: Adjust prototypes, add constant
* init/tests/test_job_process.c (test_spawn): Add argument to call in
tests

1279. By Scott James Remnant (Canonical)

* configure.ac: Bump version to 1.3
* NEWS: Begin new release

1278. By Scott James Remnant (Canonical)

* NEWS: Release 1.2

1277. By Scott James Remnant (Canonical)

* init/job_process.c (job_process_run): Correct shell redirection;
the form we used dosen't work with at least pdksh

1276. By Scott James Remnant (Canonical)

* configure.ac: Bump version to 1.2
* NEWS: Begin new release

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.

Subscribers