[Merge] lp:~vorlon/upstart/default-priority-not-always-zero into lp:upstart

James Hunt james.hunt at canonical.com
Fri Dec 14 11:25:31 UTC 2012


Strike that first comment. What we actually need to do is:

- retain the original behaviour and set class->nice = 0.
- in job_process_spawn(), only call setpriority() if:
  - running as root and with PID 1.
  - not running as root and where 'class->nice > getpriority()'.

That way, Session Init job processes will by default just get the priority of their parent (whatever that has recently been set to). But if a user job attempts to lower the job priority explictly using the nice stanza, that will be honoured).


-- 
https://code.launchpad.net/~vorlon/upstart/default-priority-not-always-zero/+merge/134799
Your team Upstart Reviewers is subscribed to branch lp:upstart.



More information about the upstart-devel mailing list