~jamesodhunt/upstart/fix-for-bug-922754

  • Committer: James Hunt
  • Date: 2012-02-03 13:17:24 UTC
  • Revision ID: james.hunt@ubuntu.com-20120203131724-o0muj30ugsujsnlt
* init/job_process.c: job_process_spawn():
  - Set close-on-exec for pty_master.
  - Ensure stdio buffers flushed prior to forking to ensure no data
    leakage to child (should init be run with '--debug', or the tests
    be run with redirected output, for example).
  - Free log object if child process fails to exec(3) rather than just
    closing fd. This ensures io watch is removed correctly. (LP: #922754)
  - Only need to remap pty_master if CONSOLE_LOG in operation.
* init/tests/test_job_process:
  - fd_valid(): New helper function to determine if specified fd is valid.
  - child(): Added new 'TEST_FDS' test to ensure no fd leakage to child
    processes.
  - test_run():
    - New tests:
      - "ensure sane fds with no console, no script"
      - "ensure sane fds with no console, and script"
      - "ensure sane fds with console log, no script"
      - "ensure sane fds with console log, and script"
      - "with single-line command running an invalid command, then a 1-line post-stop script"
      - "with single-line command running an invalid command, then a 2-line post-stop script"
      - "with single-line command running an invalid command, then a post-stop command"
      - "with single-line command running an invalid command, then an invalid post-stop command"
      - "with single-line command running a valid command, then a 1-line invalid post-stop command"
    - Test "with single-line command running an invalid command":
      - now diverts stderr output for less chatty test-run experience.
      - Improved checking.
    - Test "with setuid me" now diverts stderr output for less chatty
      test-run experience.
  - test_spawn():
    - New tests:
      - "with no such file, no shell and console log"
      - "ensure sane fds with no console"
      - "ensure sane fds with console log"
* init/tests/test_log.c: test_log_destroy():
  - New test "ensure watch freed when log destroyed"
Filename Latest Rev Last Changed Committer Comment Size
..
conf 1152 14 years ago Scott James Remnant * conf/control-alt-delete.conf: Default job for Co Diff
contrib 1154 14 years ago Scott James Remnant * contrib/vim/syntax/upstart.vim: Upstart job synt Diff
dbus 946 16 years ago Scott James Remnant * dbus/com.ubuntu.Upstart.xml: Initially empty des Diff
doc 243 17 years ago Scott James Remnant * doc/upstart-logo.svg: Include the logo Alexandre Diff
extra 1245.3.1 13 years ago Scott James Remnant Import the udev bridge from Ubuntu Diff
init 3 18 years ago Scott James Remnant * init/main.c: Add the simplest template main.c * Diff
po 1 18 years ago Scott James Remnant * ChangeLog: Initial project infrastructure create Diff
scripts 1295.1.1 12 years ago James Hunt Addition of initctl2dot script for visualisation. Diff
util 265 17 years ago Scott James Remnant * initctl: Rename to util again, I don't want a se Diff
.bzrignore 1245.3.3 13 years ago Scott James Remnant catch up with main 973 bytes Diff Download File
AUTHORS 828 16 years ago Scott James Remnant * AUTHORS, logd/jobs.d/logd.in: Update e-mail addr 537 bytes Diff Download File
ChangeLog 1356 12 years ago James Hunt * init/job_process.c: job_process_spawn(): - Set 401 KB Diff Download File
configure.ac 1338 12 years ago James Hunt * configure.ac: Bump version to 1.5 * NEWS: Begin 1.7 KB Diff Download File
COPYING 1124 14 years ago Scott James Remnant * COPYING: Change licence to version 2 of the GNU 17.5 KB Diff Download File
HACKING 1206 14 years ago Scott James Remnant libnih is now released as its own project, so rath 4.6 KB Diff Download File
Makefile.am 1341 12 years ago James Hunt * Makefile.am: Add missing TESTING.sessions to dis 197 bytes Diff Download File
NEWS 1338 12 years ago James Hunt * configure.ac: Bump version to 1.5 * NEWS: Begin 39.4 KB Diff Download File
README 1237 14 years ago Scott James Remnant * configure.ac: Replace the --with-local-libnih co 1.8 KB Diff Download File
TESTING.sessions 1321 12 years ago James Hunt * TESTING.sessions: Updated with information on us 6.1 KB Diff Download File
TODO 1262 13 years ago Scott James Remnant * configure.ac, NEWS: Bump version to 1.0 * TODO: 4.9 KB Diff Download File