From: Jamie Lokier <jamie@shareable.org>
To: Anthony Liguori <anthony@codemonkey.ws>
Cc: "Kirill A. Shutemov" <kirill@shutemov.name>,
qemu-devel@nongnu.org, Juan Quintela <quintela@redhat.com>
Subject: Re: [Qemu-devel] Re: [PATCH 01/14] Introduce qemu_write_full()
Date: Wed, 20 Jan 2010 01:30:13 +0000 [thread overview]
Message-ID: <20100120013013.GD11920@shareable.org> (raw)
In-Reply-To: <4B565684.2080809@codemonkey.ws>
Anthony Liguori wrote:
> >- write(posix_aio_state->wfd,&byte, sizeof(byte));
> >+ ret = write(posix_aio_state->wfd,&byte, sizeof(byte));
> >+ if (ret< 0&& errno != EAGAIN)
> >+ die("write()");
> > }
> >
> >if write() fails in a pipe in the signal handler, I am at a lost about
> >what to do here.
>
> That's nothing we can do. I guess exiting is reasonable.
At least retry if it returns EINTR. That can happen in a signal
handler, if the handler does not block all other signals.
-- Jamie
prev parent reply other threads:[~2010-01-20 1:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1262223199-19062-1-git-send-email-kirill@shutemov.name>
2010-01-19 12:11 ` [Qemu-devel] Re: [PATCH 01/14] Introduce qemu_write_full() Juan Quintela
2010-01-19 12:17 ` Kirill A. Shutemov
2010-01-19 18:50 ` Blue Swirl
2010-01-19 19:43 ` Anthony Liguori
2010-01-20 0:04 ` Juan Quintela
2010-01-20 1:04 ` Anthony Liguori
2010-01-20 1:30 ` Jamie Lokier [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=20100120013013.GD11920@shareable.org \
--to=jamie@shareable.org \
--cc=anthony@codemonkey.ws \
--cc=kirill@shutemov.name \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
/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 NNTP newsgroup(s).