Strange problem with errno and latest Sylpheed from pkgsrc

Steve O'Hara-Smith steve at sohara.org
Mon Feb 20 04:14:01 PST 2006


	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.

-- 
C:>WIN                                      |   Directable Mirror Arrays
The computer obeys and wins.                | A better way to focus the sun
You lose and Bill collects.                 |    licences available see
                                            |    http://www.sohara.org/





More information about the Bugs mailing list