Mercurial > pidgin
diff libfaim/aim_conn.c @ 817:aefd5f2b1ea0
[gaim-migrate @ 827]
gaim depends on libfaim
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 01 Sep 2000 00:03:58 +0000 |
parents | 58106806ac2b |
children | 595ac7759563 |
line wrap: on
line diff
--- a/libfaim/aim_conn.c Thu Aug 31 23:04:07 2000 +0000 +++ b/libfaim/aim_conn.c Fri Sep 01 00:03:58 2000 +0000 @@ -323,10 +323,13 @@ return cur; } } - } + *status = 0; /* shouldn't happen */ + } else if ((i == -1) && (errno == EINTR)) /* treat interrupts as a timeout */ + *status = 0; + else + *status = i; /* can be 0 or -1 */ faim_mutex_unlock(&sess->connlistlock); - *status = i; /* may be 0 or -1 */ return NULL; /* no waiting or error, return */ }