Mercurial > gftp.yaz
diff src/gtk/gftp-gtk.c @ 873:42f9ce5e4bff
2007-2-4 Brian Masney <masneyb@gftp.org>
* src/uicommon/gftpui.c - don't use a sigjmp buffer for the stop
button. Instead, make sure a signal is delivered to the child thread
and the thread will exit gracefully. Removed unused functions:
_gftpui_cb_connect() and _gftpui_cb_disconnect()
* src/gtk/gftp-gtk.c (stop_button) - set the cancel variable inside
the gftp_request structure when the stop button is pressed.
author | masneyb |
---|---|
date | Sun, 04 Feb 2007 21:29:38 +0000 |
parents | 1fae947d4418 |
children | a15adc70e327 |
line wrap: on
line diff
--- a/src/gtk/gftp-gtk.c Sun Feb 04 21:25:46 2007 +0000 +++ b/src/gtk/gftp-gtk.c Sun Feb 04 21:29:38 2007 +0000 @@ -1251,9 +1251,15 @@ memset (&comptid, 0, sizeof (comptid)); if (!pthread_equal (comptid, window1.tid)) - pthread_kill (window1.tid, SIGINT); + { + window1.request->cancel = 1; + pthread_kill (window1.tid, SIGINT); + } else if (!pthread_equal (comptid, window2.tid)) - pthread_kill (window2.tid, SIGINT); + { + window2.request->cancel = 1; + pthread_kill (window2.tid, SIGINT); + } }