Merge lp:~jamesodhunt/upstart/bug-1447756-the-actual-fix into lp:upstart
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 1666 | ||||
Proposed branch: | lp:~jamesodhunt/upstart/bug-1447756-the-actual-fix | ||||
Merge into: | lp:upstart | ||||
Diff against target: |
230 lines (+167/-3) 3 files modified
ChangeLog (+18/-0) init/log.c (+42/-0) init/tests/test_log.c (+107/-3) |
||||
To merge this branch: | bzr merge lp:~jamesodhunt/upstart/bug-1447756-the-actual-fix | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Upstart Reviewers | Pending | ||
Review via email: mp+259020@code.launchpad.net |
Description of the change
* init/log.c:
- log_clear_
get flushed automatically by their corresponding NihIo before
a request to clear the unflushed list is made. This scenario
is triggered when a job which has spawned processes exits, but
where the spawned processes continue to run and then produce
output before the request to clear the unflushed list is made
(at the time the log partition becomes writable) but after the
log partition becomes writable (LP: #1447756).
* init/tests/
- test_log_new(): Added new test:
"ensure logger unflushed list ignores already flushed data".
- test_log_destroy(): Improved test
"ensure unflushed data moved to unflushed list with uid 0" by giving
the log a parent and checking parent handling behaviour.