curl-library
Re: Error in select().. returns -1
From: Ben Greear <greearb_at_candelatech.com>
Date: Sat, 15 Oct 2011 13:11:18 -0700
Date: Sat, 15 Oct 2011 13:11:18 -0700
On 10/15/2011 10:50 AM, ketrio juki wrote:
> Hi,
> i'm running libcurl tutorial examples about multi interface but often i get -1 as return code from
>
> int rc = select(maxfd+1, &fread, &fwrite, &fexcep, &timeout)
>
> I exeperience this error in all you multi examples (multi-post.c, multi-simple.c...)
> Why this error happens? Any suggestion? What can i do to solve this error?
> Thank you.
Print out the error: printf("error: %s\n", strerror(errno));
Thanks,
Ben
>
> Matt
>
>
>
>
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
-- Ben Greear <greearb_at_candelatech.com> Candela Technologies Inc http://www.candelatech.com ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2011-10-15