Actions
Bug #95
closedStrange problem with errno and latest Sylpheed from pkgsrc
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Description
Hi,
I've hit a really odd problem with the latest pkgsrc sylpheed
under 1.5.0 Preview. Attempts to fetch mail from my POP3 servers always
fail instantly - using gdb I tracked the problem to this bit of code:
-----------------------------------------------------------
if (connect(sock, addr_data->addr, addr_data->addr_len) < 0) {
if (EINPROGRESS == errno) {
break;
} else {
perror("connect");
fd_close(sock);
}
------------------------------------------------------------
It produces the message
connect: Operation now in progress
Which would seem to indicate that errno is EINPROGRESS, but
in gdb print errno produces - $1 1179403647 which is an absurd number.
At this point I am confused, I have hacked the code to pretend
connect cannot fail in order to use the application but that's not really
a solution :)
Can any one shed any light on this please.
Actions