lp:~jamesodhunt/upstart/event-prefixes
- Get this branch:
- bzr branch lp:~jamesodhunt/upstart/event-prefixes
Branch merges
- Steve Langasek: Needs Fixing
-
Diff: 940 lines (+706/-15)11 files modifiedChangeLog (+45/-0)
extra/man/upstart-event-bridge.8 (+15/-4)
extra/upstart-event-bridge.c (+27/-2)
init/control.c (+7/-0)
init/event.c (+125/-0)
init/event.h (+48/-0)
init/event_operator.c (+40/-3)
init/man/init.5 (+57/-0)
init/tests/test_event.c (+100/-0)
init/tests/test_event_operator.c (+210/-3)
util/man/initctl.8 (+32/-3)
Branch information
Recent revisions
- 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. - 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