Public bug reported:

http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-
saucy.git;a=blob;f=drivers/staging/android/binder.c;hb=refs/heads/mako#l516

"""
static void binder_set_nice(long nice)
{
        long min_nice;
        if (can_nice(current, nice)) {
                set_user_nice(current, nice);
                return;
        }
        min_nice = 20 - current->signal->rlim[RLIMIT_NICE].rlim_cur;
        binder_debug(BINDER_DEBUG_PRIORITY_CAP,
                     "binder: %d: nice value %ld not allowed use "
                     "%ld instead\n", current->pid, nice, min_nice);
        set_user_nice(current, min_nice);
        if (min_nice < 20)
                return;
        binder_user_error("binder: %d RLIMIT_NICE not set\n", current->pid);
}
"""

That happens because binder expects it to be able to change the nice
value for the specific process, and fails when the process is started by
Ubuntu, which has a default nice value of 0 (rlimit nice is set to 40 40
by default in android, via android's init).

** Affects: touch-preview-images
     Importance: Undecided
         Status: New

** Affects: linux-grouper (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: linux-maguro (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: linux-mako (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: linux-manta (Ubuntu)
     Importance: Undecided
         Status: New

** Also affects: linux-grouper (Ubuntu)
   Importance: Undecided
       Status: New

** Also affects: linux-manta (Ubuntu)
   Importance: Undecided
       Status: New

** Also affects: linux-maguro (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1202887

Title:
  'binder: RLIMIT_NICE not set' when using binder from the ubuntu side

To manage notifications about this bug go to:
https://bugs.launchpad.net/touch-preview-images/+bug/1202887/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to