~jamesodhunt/upstart/async-spawn.20140310

Viewing all changes in revision 875.

  • Committer: Scott James Remnant
  • Date: 2008-03-07 19:24:52 UTC
  • Revision ID: scott@netsplit.com-20080307192452-xgq9hdnl4131sctf
* init/job.c (job_change_state): Remove the code to check for runaway
jobs from here, we'll always let people explicitly start an instance.
(job_process_terminated): Call job_catch_runaway when actually doing
the respawn instead.
* init/tests/test_job.c (test_change_state): Remove "too fast" checks,
we're going to allow start/stop requests to restart jobs as much as
they like since this is an external request.
(test_handle_event, test_handle_event_finished): No need to remove
a respawn limit with this behaviour.
(test_child_handler): Instead check that the respawn counter is
dealt with by the child handler.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: