~cweber10/ubuntu/precise/upstart/lp.793554

« back to all changes in this revision

Viewing changes to ChangeLog

  • Committer: James Hunt
  • Date: 2012-01-26 15:14:49 UTC
  • Revision ID: james.hunt@ubuntu.com-20120126151449-h1phjaf4h5fro2h9
Merge of important logger fixes from upstream lp:upstart
(LP: #912558).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
2012-01-25  James Hunt  <james.hunt@ubuntu.com>
 
2
 
 
3
        * init/job_process.c: job_process_terminated(): Free log to ensure data
 
4
          written as soon as _any_ process ends (consider respawn jobs).
 
5
        * init/log.c:
 
6
          - log_destroy():
 
7
            - Improved documentation.
 
8
            - Now calls new function log_flush().
 
9
          - log_flush(): New function to ensure no lingering buffered job data
 
10
            remains. Now considers EBADF (LP: #912558).
 
11
          - log_io_reader():
 
12
            - Added missing assert for @len.
 
13
            - Simplified ENOSPC handling.
 
14
            - Ensure log->io set to NULL to allow other routines to detect it
 
15
              really has gone.
 
16
          - log_file_write(): Added @len checks.
 
17
          - log_read_watch(): New function to drain data from a watch descriptor
 
18
            (which also must consider EBADF).
 
19
        * init/log.h: Added define for LOG_READ_SIZE.
 
20
        * init/tests/test_job_process.c:
 
21
          - test_run():
 
22
            - Added some extra pointer checks.
 
23
            - Free class *before* checking file to ensure destructor invoked at
 
24
              correct point.
 
25
            - Added test "with single-line command running an invalid command"
 
26
              (for scenario bug 912558 exposed).
 
27
            - Added test "with single-line command writing fast and exiting".
 
28
        * init/tests/test_log.c: Changed all tests to use openpty(3) rather than
 
29
          pipe(2) for semantic parity with actual code.
 
30
        * util/tests/test_user_sessions.sh:
 
31
          - ensure_no_output(): Now calls check_job_output() and delete_job() to
 
32
            simplify logic.
 
33
          - delete_job(): Call get_job_file() rather than doing it long-hand.
 
34
          - check_job_output(): New function.
 
35
          - start_job(): Added allow_failure parameter.
 
36
          - test_ensure_no_unexpected_output(): New test
 
37
            "ensure command job does not create log file with invalid command".
 
38
 
 
39
2012-01-05  James Hunt  <james.hunt@ubuntu.com>
 
40
 
 
41
        * init/man/init.5: Explain that all job processes affected
 
42
          by 'setuid' and 'setgid' stanzas.
 
43
 
1
44
2011-12-22  James Hunt  <james.hunt@ubuntu.com>
2
45
 
3
46
        * init/job_process.c: job_process_spawn():