1
2012-01-25 James Hunt <james.hunt@ubuntu.com>
3
* init/job_process.c: job_process_terminated(): Free log to ensure data
4
written as soon as _any_ process ends (consider respawn jobs).
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).
12
- Added missing assert for @len.
13
- Simplified ENOSPC handling.
14
- Ensure log->io set to NULL to allow other routines to detect it
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:
22
- Added some extra pointer checks.
23
- Free class *before* checking file to ensure destructor invoked at
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
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".
39
2012-01-05 James Hunt <james.hunt@ubuntu.com>
41
* init/man/init.5: Explain that all job processes affected
42
by 'setuid' and 'setgid' stanzas.
1
44
2011-12-22 James Hunt <james.hunt@ubuntu.com>
3
46
* init/job_process.c: job_process_spawn():