~vorlon/ubuntu/raring/upstart/lp.1199778

  • Committer: Scott James Remnant
  • Date: 2008-03-01 17:58:15 UTC
  • Revision ID: scott@netsplit.com-20080301175815-9ghzdfpn913uivtl
* init/job.c (job_new): Increment the number of instances.
(job_instance): Simplify the function, it now only returns the
existing instance or NULL.  This makes it easier to extend when
we have env-limited instances later on.
(job_handle_event): If job_instance returns NULL, create
a new instance with job_new() and always reset the operator afterwards.
* init/tests/test_job.c (test_new): Check that the instances variable
is incremented when a new job is created.
(test_instance): Change to check that it returns NULL when there is
no active instance, or for multi-instance jobs, instead of creating
a new one itself.
(test_config_replace, test_find_by_pid)
(test_find_by_id, test_change_goal, test_change_state)
(test_next_state, test_run_process, test_kill_process)
(test_child_handler, test_handle_event)
(test_handle_event_finished): Call job_new to create a new instance
from a config, instead of job_instance.

* init/tests/test_conf.c (test_source_reload_job_dir)
(test_file_destroy): Call job_new to create a new instance from a
config, instead of job_instance.
* init/tests/test_event.c (test_poll): Call job_new to create a new
instance from a config, instead of job_instance.
* init/tests/test_process.c (test_spawn, test_environment): Call
job_new to create a new instance from a config, instead of job_instance
Filename Latest Rev Last Changed Committer Comment Size
..
compat 164 18 years ago Scott James Remnant * configure.ac (AC_CONFIG_FILES): Create compat/sy Diff
doc 243 17 years ago Scott James Remnant * doc/upstart-logo.svg: Include the logo Alexandre Diff
init 3 18 years ago Scott James Remnant * init/main.c: Add the simplest template main.c * Diff
logd 94 18 years ago Scott James Remnant * Makefile.am (SUBDIRS): Build the logd daemon * c Diff
m4 1 18 years ago Scott James Remnant * ChangeLog: Initial project infrastructure create Diff
po 1 18 years ago Scott James Remnant * ChangeLog: Initial project infrastructure create Diff
util 265 17 years ago Scott James Remnant * initctl: Rename to util again, I don't want a se Diff
.bzrignore 786 16 years ago Scott James Remnant ignore the debian directory should it exist 837 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 843 16 years ago Scott James Remnant * init/job.c (job_new): Increment the number of in 245 KB Diff Download File
configure.ac 842 16 years ago Scott James Remnant * configure.ac: Compare the evaluated $sbindir aga 1.4 KB Diff Download File
COPYING 1 18 years ago Scott James Remnant * ChangeLog: Initial project infrastructure create 17.5 KB Diff Download File
HACKING 805 16 years ago Scott James Remnant * HACKING: Correct bzr URLs to trunk. 4.9 KB Diff Download File
Makefile.am 768 16 years ago Scott James Remnant Strip out all of the IPC code, removing it and con 188 bytes Diff Download File
NEWS 766 16 years ago Scott James Remnant * NEWS: Copy in news from 0.3.9; that release does 16.6 KB Diff Download File
README 827 16 years ago Scott James Remnant * README: Update kernel recommendation to 2.6.24, 1.5 KB Diff Download File
TODO 833 16 years ago Scott James Remnant * TODO: Update with job atomicity notes. 9.2 KB Diff Download File