lp:~jamesodhunt/upstart/event-prefixes

Created by James Hunt and last modified
Get this branch:
bzr branch lp:~jamesodhunt/upstart/event-prefixes
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:
Abandoned

Recent revisions

1434. By James Hunt

* extra/man/upstart-event-bridge.8: Clarify event-forwarding
  behaviour.

1433. By James Hunt

* Sync with lp:upstart.

1432. By James Hunt

* extra/upstart-event-bridge.c:
  - upstart_forward_event(): Expand '::' events rather than ignoring to
    reflect new meaning.
* init/event.h:
  - EventType: Added EVENT_TYPE_ANY.
  - Changed EVENT_PREFIX_DEFAULT to EVENT_PREFIX_ANY.
* init/event.c:
  - event_type_from_name(): Changed EVENT_PREFIX_DEFAULT to
    EVENT_PREFIX_ANY and its meaning.
  - event_canonical_name(): Changed EVENT_PREFIX_DEFAULT to
    EVENT_PREFIX_ANY.
* init/event_operator.c: event_operator_match(): Additional logic for Session Inits.
* init/man/init.5: Explanation of event prefixes.
* init/tests/test_event.c: test_event_names(): Updated for EVENT_TYPE_ANY.
* init/tests/test_event_operator.c: test_operator_match(): Replaced
  long-hand tests with table-driven testing invoked from
  test_operator_match_prefixes() that also fakes being PID 1 to check all possible
  match behaviour scenarios.
* util/man/initctl.8: Updated event-prefixing explanation.

1431. By James Hunt

* extra/upstart-event-bridge.c: Ignore events explicitly
  prefixed with '::' and ':sys:' as they are system-level private.
* init/control.c: control_emit_event_with_file(): Call
  event_check_emit_policy() to disallow invalid events.
* init/event.c:
  - event_type_from_name(): New function to categorise an event
    based on its name.
  - event_check_emit_policy(): New function.
  - event_canonical_name(): Determine short name of event.
* init/event.h: Defines to support new functions and EventType enum.
* init/event_operator.c: event_operator_match(): Perform checks on
  @event and @oper to determine new match behaviour for PID 1
  and Session Init processes.
* init/tests/test_event.c: test_event_names(): New test.
* init/tests/test_event_operator.c:
  - test_operator_match(): Updates for new syntax.
* util/man/initctl.8: Explanation of new event prefix syntax.

1429. By James Hunt

* Merge of lp:~jamesodhunt/upstart/bug-881885.

1428. By James Hunt

* Merge of lp:~xnox/upstart/user-log-dir.

1426. By James Hunt

* init/log.c:log_clear_unflushed(): Simplify asserts.

1425. By James Hunt

* init/log.c:
  - log_clear_unflushed(): Correct remote_closed assertion to handle
    early-job-logging scenario where a job satisfies both of the
    following conditions:
    - ends before the log directory becomes writeable.
    - has spawned one or more processes that continue to run after the
      job itself has exited and which produce output before the log
      directory becomes writeable.
    (LP: #1096531).

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