On 12/17/2010 05:41 AM, Sebastian Dransfeld wrote:

>>            num = read(svr->fd, buf, sizeof(buf));
>> -        if ((num>   0) || (errno == EAGAIN))
>> +        if ((num>= 0) || (errno == EAGAIN))
>>              lost_server = EINA_FALSE;
>
> Sure this is right? a ret 0 an errno != EAGAIN is probably a lost server.

0 is a successful return, so errno is not set in that case.

The above fix looks correct to me.

thanks,

Mike

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to