~upstart-devel/upstart/archive-20110607-v1.2

Viewing all changes in revision 1282.

  • Committer: Scott James Remnant
  • Date: 2011-05-12 20:42:28 UTC
  • mfrom: (1279.2.4 kill-signal-stanza)
  • Revision ID: scott@netsplit.com-20110512204228-gpexr447r8633tco
* init/job_class.h (JobClass): Add kill signal member
* init/job_class.c (job_class_new): Initialise kill signal
* init/tests/test_job_class.c (test_new): Check kill signal initialised
correctly.
* init/system.c (system_kill): Change to accept a signal rather than
a boolean.
* init/system.h: Update prototype
* init/tests/test_system.c (test_kill): Update tests to pass signals
by value.
* init/job_process.c (job_process_kill, job_process_kill_timer): Pass
the configured kill signal, or SIGKILL, to the function rather than
TRUE/FALSE.
* init/parse_job.c (stanza_kill): Add parsing for kill signal.
* init/tests/test_parse_job.c (test_stanza_kill): Check parsing works
* init/errors.h: Add illegal signal error and string.
* init/man/init.5: Update documentation

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: