From: Jeff Dike <jdike@addtoit.com>
To: Blaisorblade <blaisorblade@yahoo.it>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: [uml-devel] Re: SKAS leftovers: having fun with old code relicts (aka PTRACE_SIGPENDING)
Date: Mon, 07 Mar 2005 19:00:32 -0500 [thread overview]
Message-ID: <200503080001.j2800Wbc005246@ccure.user-mode-linux.org> (raw)
In-Reply-To: Your message of "Sun, 06 Mar 2005 19:49:03 +0100." <200503061949.03819.blaisorblade@yahoo.it>
blaisorblade@yahoo.it said:
> After this story, we come to the question: Jeff, what I missed (apart
> that probably it was used in releases before SKAS3)?
I don't think it was ever used. The thinking was race avoidance - if a
signal hit the process at the same time that it started a system call, or two
signals came in at the same time, UML would handle the first, then
PTRACE_SIGPENDING to see if there were any more that needed handling. However,
the userspace process doesn't receive any signals apart from SIGVTALRM, so
this is somewhat moot.
If the userspace process did receive important signals (like SIGIO), then not
using this could lead to situations where the one running process sleeps for
a long time, leaving a SIGIO trapped on the userspace process. And this
could lead to deadlocks when the SIGIO was for the I/O that the process was
sleeping on.
> Could I delete PTRACE_SIGPENDING from the SKAS patch?
Yup.
Jeff
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
prev parent reply other threads:[~2005-03-07 23:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-06 18:49 [uml-devel] SKAS leftovers: having fun with old code relicts (aka PTRACE_SIGPENDING) Blaisorblade
2005-03-08 0:00 ` Jeff Dike [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=200503080001.j2800Wbc005246@ccure.user-mode-linux.org \
--to=jdike@addtoit.com \
--cc=blaisorblade@yahoo.it \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/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