[Merge] lp:~stgraber/upstart/upstart-fix-respawn into lp:upstart
Stéphane Graber
stgraber at stgraber.org
Mon Jul 1 21:11:28 UTC 2013
Stéphane Graber has proposed merging lp:~stgraber/upstart/upstart-fix-respawn into lp:upstart.
Requested reviews:
Upstart Reviewers (upstart-reviewers)
For more details, see:
https://code.launchpad.net/~stgraber/upstart/upstart-fix-respawn/+merge/172420
This fixes a regression recently found when working on Ubuntu Touch.
The problem is that if a job has the respawn flag and doesn't contain any of the standard shell characters in its exec line, upstart will still set job->script to TRUE once the initial run has succeeded. This mean that on first respawn of the job, it'll end up forking one extra time and confuse upstart.
The change that introduced this was done to fix a case where tests would fail when running from a directory containing a shell character in its name (~test for example). The assumption at the time being that ->script wasn't persistent (clearly wrong) and that it wouldn't hurt to set it after the job has been started in order to simplify testing.
The fix is to revert the change to upstart itself and instead include the same shell characters list in the testsuite and have the testsuite check against it just like init itself does.
--
https://code.launchpad.net/~stgraber/upstart/upstart-fix-respawn/+merge/172420
Your team Upstart Reviewers is requested to review the proposed merge of lp:~stgraber/upstart/upstart-fix-respawn into lp:upstart.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: review-diff.txt
Type: text/x-diff
Size: 2867 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/upstart-devel/attachments/20130701/9080e87a/attachment.diff>
More information about the upstart-devel
mailing list