This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/17204] New: race condition in nice


https://sourceware.org/bugzilla/show_bug.cgi?id=17204

            Bug ID: 17204
           Summary: race condition in nice
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: sstewartgallus00 at mylangara dot bc.ca
                CC: drepper.fsp at gmail dot com

nice is implemented as calling getpriority and than setting the priority as
higher and than calling getpriority again but this is racy as other tasks can
call setpriority concurrently. This bug probably doesn't actually cause any
problems but it could still be fixed. Fixing this bug would also reduce the
amount of system calls by one which would be nice. Glibc should not call
getpriority to get the new value of the priority after.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]