This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/17204] New: race condition in nice
- From: "sstewartgallus00 at mylangara dot bc.ca" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Sun, 27 Jul 2014 04:38:49 +0000
- Subject: [Bug libc/17204] New: race condition in nice
- Auto-submitted: auto-generated
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.