1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-27 21:29:02 +00:00
freebsd-ports/ftp/axel/files/patch-axel.c
Ying-Chieh Liao a90ee6bb3c add axel
A download accelerator
2001-08-05 16:06:50 +00:00

17 lines
507 B
C

--- axel.c.orig Sun Aug 5 23:40:26 2001
+++ axel.c Sun Aug 5 23:41:19 2001
@@ -797,10 +797,11 @@
void *setup_thread( void *c )
{
conn_t *conn = c;
+ int oldstate;
/* Allow this thread to be killed at any time. */
- pthread_setcancelstate( PTHREAD_CANCEL_ENABLE, NULL );
- pthread_setcanceltype( PTHREAD_CANCEL_ASYNCHRONOUS, NULL );
+ pthread_setcancelstate( PTHREAD_CANCEL_ENABLE, &oldstate );
+ pthread_setcanceltype( PTHREAD_CANCEL_ASYNCHRONOUS, &oldstate );
if( conn_setup( conn ) )
{