lp:~jamesodhunt/upstart/bugs-1235649+1203595
- Get this branch:
- bzr branch lp:~jamesodhunt/upstart/bugs-1235649+1203595
Branch merges
- Steve Langasek: Disapprove
-
Diff: 1044 lines (+730/-34)13 files modifiedChangeLog (+48/-1)
init/control.c (+45/-12)
init/control.h (+5/-1)
init/environ.c (+4/-0)
init/job_class.c (+56/-6)
init/job_process.c (+1/-1)
init/main.c (+12/-5)
init/tests/test_control.c (+2/-2)
init/tests/test_environ.c (+457/-0)
test/test_util_common.c (+11/-1)
util/initctl.c (+2/-3)
util/man/initctl.8 (+2/-2)
util/tests/test_initctl.c (+85/-0)
Related bugs
Bug #1203595: session init, not available on dbus? | Undecided | Fix Released | |
Bug #1235649: uevent spam causes libdbus client code in session upstart to consume massive amounts of memory on Ubuntu Touch | Undecided | Fix Released |
Related blueprints
Branch information
Recent revisions
- 1545. By James Hunt
-
* init/control.c: control_bus_open(): Don't call nih_dbus_bus() if
DBUS_SESSION_ BUS_ADDRESS is not set to avoid D-bus auto-launching a
dbus-daemon.
* init/environ.c: Comments.
* init/job_class.c:
- job_class_environment_ init(): Superior check on whether job_environ
is not empty.
- job_class_environment_ reset() : Only reset job_environ if not NULL
already.
- job_class_environment_ set(): Set variable in Upstarts environment
too (required to allow Upstart to be aware of the D-Bus session bus
address when the dbus-daemon is available).
- job_class_environment_ unset() : Unset variable from Upstarts
environment, but only if it is not a default variable.
* init/job_process.c: Formatting.
* init/test_control. c: Updated strings used by tests which check error
messages to include 'D-Bus'.
* init/test_environ. c:
- test_add(): New test:
- "using bare word with no corresponding variable set in environment"
- test_remove(): New function ("the missing test") containing 8 new tests:
- "remove name=value pair with empty table"
- "remove bare name with empty table"
- "remove name=value from table of size 1"
- "remove bare name from table of size 1"
- "remove first name=value entry from table of size 2"
- "remove first bare name entry from table of size 2"
- "remove last name=value entry from table of size 2"
- "remove last bare name entry from table of size 2"
* test/test_util_common. c:
- Formatting.
- get_initctl(): Added environment checks.
* util/initctl.c:
- Formatting.
- Removed testing comment from option text for '--session'.
* util/man/initctl.8: Removed testing comment for '--session'.
* util/tests/test_initctl. c:
- test_session_init(): New test that checks the Session Init now
connects to the D-Bus session bus. - 1544. By James Hunt
-
* Connect to the D-Bus session bus as well as using a private socket
when running as a Session Init (LP: #1203595, #1235649). - 1543. By Scott James Remnant (Canonical)
-
Do not respawn jobs, that are being stopped and running pre-stop already.
- 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