public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "bugdal at aerifal dot cx" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug libc/14829] sched_* functions wrongly alter thread scheduling, rather than process
Date: Tue, 17 Jun 2014 13:54:00 -0000	[thread overview]
Message-ID: <bug-14829-131-ZOeiK8ubPL@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-14829-131@http.sourceware.org/bugzilla/>

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

--- Comment #8 from Rich Felker <bugdal at aerifal dot cx> ---
No. For at least a couple reasons:

1. SETXID is for a process acting on itself. sched_* can target any PID. Having
glibc accept SETXID signals from other processes would impose some serious
compatibility issues: the sender and receiver would have to have matching ideas
of the protocol. The locking to get it right would also be difficult or
impossible, and there may be permissions issues about sending the signals.

2. Changing the scheduling parameters of a process is not the same thing as
changing the parameters for each thread of the process. Per POSIX, the sched_*
functions are specified to be almost complete NOPs, aside from setting and
retrieving values and checking permissions, etc., on systems that do not
support a process scheduling scope (Linux is such a system). So making them
change all threads would just replace one wrong behavior with another.

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


      parent reply	other threads:[~2014-06-17 13:54 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-11 19:31 [Bug libc/14829] New: " bugdal at aerifal dot cx
2013-06-14 16:36 ` [Bug libc/14829] " carlos at redhat dot com
2013-06-16  4:46 ` bugdal at aerifal dot cx
2013-06-17 19:34 ` carlos at redhat dot com
2013-06-17 20:02 ` bugdal at aerifal dot cx
2013-06-17 20:44 ` carlos at redhat dot com
2013-06-17 21:02 ` bugdal at aerifal dot cx
2014-06-14 11:11 ` fweimer at redhat dot com
2014-06-17 12:47 ` fweimer at redhat dot com
2014-06-17 13:54 ` bugdal at aerifal dot cx [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-14829-131-ZOeiK8ubPL@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=glibc-bugs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).