public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/17204] New: race condition in nice
@ 2014-07-27  4:39 sstewartgallus00 at mylangara dot bc.ca
  2014-07-27  7:13 ` [Bug libc/17204] " schwab@linux-m68k.org
  0 siblings, 1 reply; 2+ messages in thread
From: sstewartgallus00 at mylangara dot bc.ca @ 2014-07-27  4:39 UTC (permalink / raw)
  To: glibc-bugs

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug libc/17204] race condition in nice
  2014-07-27  4:39 [Bug libc/17204] New: race condition in nice sstewartgallus00 at mylangara dot bc.ca
@ 2014-07-27  7:13 ` schwab@linux-m68k.org
  0 siblings, 0 replies; 2+ messages in thread
From: schwab@linux-m68k.org @ 2014-07-27  7:13 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> ---
It is impossible in general to know the correct return value without calling
getpriority.

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-07-27  7:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-27  4:39 [Bug libc/17204] New: race condition in nice sstewartgallus00 at mylangara dot bc.ca
2014-07-27  7:13 ` [Bug libc/17204] " schwab@linux-m68k.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).