~jamesodhunt/upstart/bug-980917-the-bug-that-would-not-die

  • Committer: James Hunt
  • Date: 2012-03-16 21:02:13 UTC
  • mfrom: (1357.2.2 upstart)
  • Revision ID: james.hunt@ubuntu.com-20120316210213-yy816l8llwemqv35
* dbus/com.ubuntu.Upstart.xml:
  - added 'NotifyDiskWriteable' method.
* init/control.c:
  - control_notify_disk_writeable(): New function to flush early job log.
* init/job_process.c:
  - job_process_terminated(): Call log_handle_unflushed() to potentially
    add log object to unflushed list (the early job log) in certain
    scenarios.
* init/log.c:
  - log_flushed: bool indicating successful flush of early job log.
  - log_unflushed_files: The "early job log" list.
  - log_new(): Call log_unflushed_init() and initialize new log members.
  - log_flush(): Only call log_read_watch() conditionally now.
  - log_io_reader(): More careful consideration of errno by
    using saved value from log member.
  - log_io_error_handler(): Set remote_closed for the benefit of
    log_flushed() (to avoid flushing multiple times).
  - log_file_open: Now saves errno value from open(2).
  - log_read_watch(): Removed log->unflushed->len assert since it was
    erroneous: even if unflushed data exists, it will be written in
    order when log_io_reader() calls log_file_write().
  - log_unflushed_init(): New function to initialise the
    log_unflushed_files list.
  - log_handle_unflushed(): New function that potentially adds log
    object to the log_unflushed_files list to allow the data to be
    flushed _after_ the parent object has been destroyed.
  - log_clear_unflushed(): New function to clear the
    log_unflushed_files list by attempting to flush the data to disk.
* init/log.h:
  - Added new Log members: detached, remote_closed and open_errno.
  - Updated documentation.
  - extern for log_unflushed_files.
  - Added prototypes for new functions: log_handle_unflushed(),
    log_clear_unflushed() and log_unflushed_init().
* init/tests/test_job_process.c:
  - test_run():
    - Call log_unflushed_init().
    - Corrected grammar in error messages for "ensure sane fds" tests.
    - "with single line command writing fast and exiting": Call
      nih_child_add_watch().
    - added waitid() calls to ensure log data not added to
      unflushed list.
  - test_spawn():
    - Call log_unflushed_init().
    - Corrected grammar in error messages for "ensure sane fds" tests.
    - Added TEST_ALLOC_SAFE() to "simple test" to ensure
      destructors run correctly.
    - "read single null byte with 'console log'": Call
      log_handle_unflushed() and added missing free.
    - "read data from forked process": Call
      log_handle_unflushed().
* init/tests/test_log.c: 
  - Updated documentation.
  - Added calls to log_unflushed_init().
  - "ensure logger flushes cached data on request": New test
    for log_handle_unflushed().
* util/initctl.c:
  - notify_disk_writeable_action(): New function to notify
    Upstart that the disk is writeable.
  - commands: Added new command "notify-disk-writeable".
* util/man/initctl.8: Updated for new notify-disk-writeable command.
* util/tests/test_initctl.c:
  - STOP_UPSTART(): Check return from kill(2).
  - test_show_config(): Adding missing rmdir(2).
  - test_check_config(): Adding missing rmdir(2).
  - test_notify_disk_writeable(): New function embodying new test
    "with job ending before log disk writeable".
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 13 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 1367 12 years ago James Hunt * dbus/com.ubuntu.Upstart.xml: - added 'NotifyDi 408 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