Merge lp:~jamesodhunt/upstart/event-prefixes into lp:upstart
Status: | Rejected |
---|---|
Rejected by: | James Hunt |
Proposed branch: | lp:~jamesodhunt/upstart/event-prefixes |
Merge into: | lp:upstart |
Diff against target: |
940 lines (+706/-15) 11 files modified
ChangeLog (+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) |
To merge this branch: | bzr merge lp:~jamesodhunt/upstart/event-prefixes |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Steve Langasek | Needs Fixing | ||
Review via email: mp+146822@code.launchpad.net |
Description of the change
This branch reworks the event-prefixing such that an unqualified system event will _not_ now cause a user job specifying an unqualified event to start. This should avoid confusion but at the cost of requiring user jobs to specify an explicit ':sys:' prefix to react to system-level events.
Unmerged 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. - 1430. By James Hunt
-
* Merge of lp:~stgraber/upstart/upstart-make-event-bridge-usable.
- 1429. By James Hunt
-
* Merge of lp:~jamesodhunt/upstart/bug-881885.
- 1428. By James Hunt
-
* Merge of lp:~xnox/upstart/user-log-dir.
- 1427. By James Hunt
-
* Merge of lp:~stgraber/upstart/upstart-session-socket.
- 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).
As discussed on upstart-devel, I think the changes to init/* should be dropped altogether, and this functionality should be confined to extra/upstart- event-bridge. c.