Merge lp:~jamesodhunt/upstart/restrict-debug-stanza into lp:upstart
Proposed by
James Hunt
Status: | Merged |
---|---|
Merged at revision: | 1605 |
Proposed branch: | lp:~jamesodhunt/upstart/restrict-debug-stanza |
Merge into: | lp:upstart |
Diff against target: |
82 lines (+26/-2) 4 files modified
ChangeLog (+8/-0) init/job_process.c (+6/-0) init/main.c (+4/-0) init/parse_job.c (+8/-2) |
To merge this branch: | bzr merge lp:~jamesodhunt/upstart/restrict-debug-stanza |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Upstart Reviewers | Pending | ||
Review via email: mp+204363@code.launchpad.net |
Description of the change
Creating a job with a debug stanza will stop stateful re-exec from working reliably since the child is paused before exec'ing such that it still retains a copy of the parents file descriptors. This is legitimate since that is the whole point of the unofficial debug stanza. Since the debug stanza is only to be used for development, no production job should be using it and in fact no production version of Upstart that supports stateful re-exec can be using it due to the problems it causes with re-exec.
As such, this branch makes the debug stanza a NOP unless upstart was *started* with --debug.
To post a comment you must log in.