This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: WCONTINUED is not portable
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Ian Lance Taylor <iant at google dot com>, Jan Hubicka <hubicka at ucw dot cz>
- Cc: Martin Husemann <martin at duskware dot de>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 24 Mar 2014 07:52:28 +0100
- Subject: Re: WCONTINUED is not portable
- Authentication-results: sourceware.org; auth=none
- References: <20140323105031 dot GB18530 at mail dot duskware dot de> <CAKOQZ8xFjqy92YdK-weYAx=M_UBWRnd4hE1i87R_Y+4L6VsNOg at mail dot gmail dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Sun, Mar 23, 2014 at 03:18:42PM -0700, Ian Lance Taylor wrote:
> On Sun, Mar 23, 2014 at 3:50 AM, Martin Husemann <martin@duskware.de> wrote:
> > The flag WCONTINUED for waitpid() is not portable.
> >
> > The attached patch just defines it to 0 if missing.
>
> I don't understand why that code passes either WUNTRACED or
> WCONTINUED. Why not just pass 0?
Note the patch Martin has posted is not needed, I've committed a change
to define WCONTINUED to 0 if not defined several days ago as obvious.
Adding Honza in the loop why he chose to use WUNTRACED | WCONTINUED.
Jakub