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

Viewing all changes in revision 847.

  • Committer: Scott James Remnant
  • Date: 2008-03-02 00:24:08 UTC
  • Revision ID: scott@netsplit.com-20080302002408-n01fd66nb3jom01q
* init/job.c (job_config_environment): Function to generate an
environment table from a JobConfig, code largely moved from process.c
* init/job.h: Add protoyype.
(JOB_DEFAULT_ENVIRONMENT): List of environment variables to always
copy from the environment (moved from process.h)
* init/tests/test_job.c (test_config_environment): Add test case,
again largely copied from test_process.c
* init/process.c (process_environment): Call job_config_environment
instead of the code moved out.
* init/process.h (PROCESS_ENVIRONMENT): Move to job.h
* TODO: Update.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: