~jamesodhunt/upstart/override-support-wip

« back to all changes in this revision

Viewing changes to init/parse_job.c

  • Committer: Scott James Remnant
  • Date: 2010-04-01 14:08:40 UTC
  • mfrom: (1235.1.1 doc-valueless-env)
  • Revision ID: scott@netsplit.com-20100401140840-rja7u0k39ek00ugn
* init/man/init.5 (env): Document behaviour when the environment
variable's value is omitted.
* init/parse_job.c (stanza_env): Document that arguments may be
simply VAR as well as VAR=VALUE.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1129
1129
 * @lineno: line number.
1130
1130
 *
1131
1131
 * Parse an env stanza from @file, extracting a single argument of the form
1132
 
 * VAR=VALUE.  These are stored in the env array, which is increased in
1133
 
 * size to accomodate the new value.
 
1132
 * VAR or VAR=VALUE.  These are stored in the env array, which is increased
 
1133
 * in size to accomodate the new value.
1134
1134
 *
1135
1135
 * Returns: zero on success, negative value on error.
1136
1136
 **/