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

Viewing all changes in revision 27.

  • Committer: Scott James Remnant
  • Date: 2006-08-14 22:04:53 UTC
  • Revision ID: scott@netsplit.com-20060814220453-9e2d07c748157735
* init/job.c (job_kill_process): Add function to send the active
process of a job the TERM signal, and then set a timer to follow
up with the KILL signal if the job doesn't get cleaned up in time.
(job_kill_timer): Timer callback to send the KILL signal; this
does the same job as the child handler and puts the job into the
next state as there's no point waiting around now.
* init/job.h: Update.
* init/tests/test_job.c (test_kill_process): Test both functions
in one test case (as one is just the bottom half of the other).

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: