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.

-- 
upstart-devel mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/upstart-devel

Reply via email to