Mercurial > gftp.yaz
diff lib/protocols.c @ 872:d7cbef177dfc
2007-2-4 Brian Masney <masneyb@gftp.org>
* lib/sshv2.c (sshv2_start_login_sequence) - when checking for
EINTR/EGAIN, only stop trying to connect if the current operation
was to be cancelled.
* lib/protocols.c (_do_sleep) - don't check for EINTR/EAGAIN. Allow
a signal to interrupt the timer.
author | masneyb |
---|---|
date | Sun, 04 Feb 2007 21:25:46 +0000 |
parents | 1fae947d4418 |
children | 1808cebed602 |
line wrap: on
line diff
--- a/lib/protocols.c Wed Jan 24 07:15:05 2007 +0000 +++ b/lib/protocols.c Sun Feb 04 21:25:46 2007 +0000 @@ -3013,19 +3013,11 @@ _do_sleep (int sleep_time) { struct timeval tv; - int ret; tv.tv_sec = sleep_time; tv.tv_usec = 0; - /* FIXME - check for user aborted connection */ - do - { - ret = select (0, NULL, NULL, NULL, &tv); - } - while (ret == -1 && (errno == EINTR || errno == EAGAIN)); - - return (ret); + return (select (0, NULL, NULL, NULL, &tv)); }