status = 2;
iret1 = pthread_create(&thread1, NULL, fetch_ftp, NULL);
} else if (status == 2) { /* thread is still running. let's kill it and start again */
- pthread_cancel(thread1);
+ /*pthread_cancel(thread1);
status = 2;
- iret1 = pthread_create(&thread1, NULL, fetch_ftp, NULL);
+ iret1 = pthread_create(&thread1, NULL, fetch_ftp, NULL);*/
+ /*
+ * actually, lets do nothing for a while
+ */
} else if (status == 1) { /* status must be 1 */
pthread_join(thread1, NULL);
status = 2;