This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gai_cancel()


On Jun 26 2017, Phil Blundell <pb@pbcl.net> wrote:

> diff --git a/resolv/gai_suspend.c b/resolv/gai_suspend.c
> index a86bd4360d..139d636c78 100644
> --- a/resolv/gai_suspend.c
> +++ b/resolv/gai_suspend.c
> @@ -111,8 +111,7 @@ gai_suspend (const struct gaicb *const list[], int ent,
>        /* Now remove the entry in the waiting list for all requests
>  	 which didn't terminate.  */
>        for (cnt = 0; cnt < ent; ++cnt)
> -	if (list[cnt] != NULL && list[cnt]->__return == EAI_INPROGRESS
> -	    && requestlist[cnt] != NULL)
> +	if (list[cnt] != NULL && requestlist[cnt] != NULL)
>  	  {
>  	    struct waitlist **listp = &requestlist[cnt]->waiting;

Is the comment still accurate?

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]