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

Viewing all changes in revision 702.

  • Committer: Scott James Remnant
  • Date: 2007-06-06 14:45:26 UTC
  • Revision ID: scott@netsplit.com-20070606144526-myb7g3cgbpb6245k
* init/parse_job.c (stanza_respawn): Permit the word "unlimited",
raise a specific error for illegal limit and illegal interval.
(stanza_pid, stanza_kill, stanza_normal, stanza_umask) 
(stanza_nice, stanza_limit): Raise specific errors rather than
a generic "illegal value" error.
* init/tests/test_parse_job.c (test_stanza_respawn): Check that
we can use "unlimited", also check for new error return.
(test_stanza_pid, test_stanza_kill, test_stanza_normal) 
(test_stanza_umask, test_stanza_nice, test_stanza_limit): Check
for new specific errors.
* init/errors.h: Replace CFG_ILLEGAL_VALUE with a series of parse
errors.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: