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

Viewing all changes in revision 900.

  • Committer: Scott James Remnant
  • Date: 2008-04-18 17:11:47 UTC
  • Revision ID: scott@netsplit.com-20080418171147-3eyirz66pur9q1f2
* init/job.h (JobConfig): Another day, another obscure job config
detail.  This one is for adjusting how likely you are to be killed
by the OOM Killer.
* init/job.c (job_config_new): Set to zero by default.
* init/tests/test_job.c (test_config_new): And make sure it is zero.
* init/parse_job.c (stanza_oom): And it helps to have a function
to set that one.
* init/tests/test_parse_job.c (test_stanza_oom): Test it.
* init/errors.h: And we need an error if its out of bounds.
* init/conf.c (conf_reload_path): Which also needs to be caught.
* init/process.c (process_spawn): Of course, we have to do something
with the oom adjustment.
(process_error_read): message for failure error.
* init/process.h (processErrorType): And need an error if it fails

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: