From: Steven Stewart-Gallus <sstewartgallus00@mylangara.bc.ca>
To: unicorn-public@bogomips.org
Subject: Bug, Unicorn can drop signals in extreme conditions
Date: Mon, 16 Feb 2015 02:19:02 +0000 (GMT) [thread overview]
Message-ID: <fc15a0f85b70.54e15396@langara.bc.ca> (raw)
Hello,
While reading the article at
http://www.sitepoint.com/the-self-pipe-trick-explained/ I realized
that the signal handling code shown there and of the same type in your
application is broken. As you have a single nonblocking pipe in your
application you can drop signals entirely (and not just fold multiple
signals of the same type into one). The simplest fix is to use a pipe
for each individual type of signal or to just use pselect or similar.
I'm pretty sure that there is a way to use a single pipe but it seems
complicated and very difficult to implement correctly.
Thank you,
Steven Stewart-Gallus
next reply other threads:[~2015-02-16 2:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-16 2:19 Steven Stewart-Gallus [this message]
2015-02-18 9:15 ` Bug, Unicorn can drop signals in extreme conditions Eric Wong
2015-02-18 17:27 ` Steven Stewart-Gallus
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
List information: https://yhbt.net/unicorn/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fc15a0f85b70.54e15396@langara.bc.ca \
--to=sstewartgallus00@mylangara.bc.ca \
--cc=unicorn-public@bogomips.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.
Code repositories for project(s) associated with this public inbox
https://yhbt.net/unicorn.git/
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).