qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paul Brook <paul@codesourcery.com>
To: qemu-devel@nongnu.org
Cc: jcd@tribudubois.net
Subject: Re: [Qemu-devel] [PATCH v3] avoid compilation warning/errors on up to date compilers/glibc
Date: Wed, 17 Jun 2009 15:03:51 +0100	[thread overview]
Message-ID: <200906171503.52825.paul@codesourcery.com> (raw)
In-Reply-To: <28684080.110231245246057655.JavaMail.root@srv-05.w4a.fr>

> > This is no more correct than before.  read() can return EINTR and that
> > should be handled appropriately.  Elsewhere, read() can return partial
> > results and we ought to handle that properly.
>
> It handles all cases except EINTR. And in the actual code base EINTR and
> __all other__ error cases are not handled. So as of today EINTR is not
> handled propely (as well as all other error cases). So this consider EINTR
> as an error when it could be handled in a nicer way. Previously no ERRORS
> were considered as an error. What is best?

The original is the lesser wevil because it is obviously wrong. Your patch 
looks like it does error handling and avoids generates warnings, but still 
does not work correctty.

> > Using -D_FORTIFY_SOURCES=0 will eliminate these warnings.  If we're
> > going to fix these things, we should fix them properly.
>
> It just hides the problem and fix nothing but the compilation.

Your patch just makes the bug more subtle and harder to spot.

Paul

  reply	other threads:[~2009-06-17 14:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <16433944.110211245245827573.JavaMail.root@srv-05.w4a.fr>
2009-06-17 13:40 ` [Qemu-devel] [PATCH v3] avoid compilation warning/errors on up to date compilers/glibc jcd
2009-06-17 14:03   ` Paul Brook [this message]
2009-06-17 18:41     ` Jean-Christophe Dubois
2009-06-18 13:31       ` Luiz Capitulino
2009-06-18 16:39         ` jcd
2009-06-17  6:03 Jean-Christophe Dubois
2009-06-17 13:26 ` Anthony Liguori

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=200906171503.52825.paul@codesourcery.com \
    --to=paul@codesourcery.com \
    --cc=jcd@tribudubois.net \
    --cc=qemu-devel@nongnu.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 NNTP newsgroup(s).