Mercurial > gftp.yaz
diff src/uicommon/gftpui.c @ 783:6f766002bff2
2006-7-21 Brian Masney <masneyb@gftp.org>
* src/gtk/misc-gtk.c (update_window_info) - fixed the default protocol
dropdown when some protocols are disabled (from
Aurelien Jarno <aurelien@aurel32.net>) (closes #348177)
* src/uicommon/gftpui.c (_gftpui_common_thread_callback) - don't use
pause(). This causes a problem on systems that use NPTL. Use nanosleep()
instead (from Aurelien Jarno <aurelien@aurel32.net>) (closes #320883)
author | masneyb |
---|---|
date | Fri, 21 Jul 2006 13:17:33 +0000 |
parents | c1144630c4f4 |
children | ca59edd1b04d |
line wrap: on
line diff
--- a/src/uicommon/gftpui.c Fri Jul 21 08:05:48 2006 +0000 +++ b/src/uicommon/gftpui.c Fri Jul 21 13:17:33 2006 +0000 @@ -54,6 +54,7 @@ intptr_t network_timeout, sleep_time; gftpui_callback_data * cdata; int success, sj, num_timeouts; + struct timespec ts; cdata = data; gftp_lookup_request_option (cdata->request, "network_timeout", @@ -90,8 +91,11 @@ cdata->request->logging_function (gftp_logging_error, cdata->request, _("Waiting %d seconds until trying to connect again\n"), sleep_time); - alarm (sleep_time); - pause (); + + ts.tv_sec = sleep_time; + ts.tv_nsec = 0; + if (nanosleep (&ts, NULL) == 0) + siglongjmp (gftpui_common_jmp_environment, 2); } } else