- Timestamp:
- 02/26/17 06:11:07 (7 years ago)
- Location:
- titan/plugins/tithek
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/tithek/tithek.h
r40117 r40119 540 540 { 541 541 int defpic = 0; 542 542 printf("tithekdownloadthread...1 /tmp/python.tar\n"); 543 543 tithekdownloadcount++; 544 544 545 545 if(node != NULL) 546 546 { 547 printf("tithekdownloadthread...2 /tmp/python.tar\n"); 548 547 549 m_lock(&status.tithekmutex, 20); 548 550 if(file_exist(node->filename)) 549 551 { 552 printf("tithekdownloadthread...3 /tmp/python.tar\n"); 553 550 554 m_unlock(&status.tithekmutex, 20); 551 555 goto end; 552 556 } 557 558 printf("tithekdownloadthread...4 /tmp/python.tar\n"); 553 559 554 560 FILE *fd; fd = fopen(node->filename, "w"); -
titan/plugins/tithek/tithek_global.h
r40117 r40119 831 831 unlink("/tmp/hoster.tar"); 832 832 833 printf("check...111 /tmp/python.tar\n"); 834 835 //dnode is freed in thread 836 struct download* dnode = calloc(1, sizeof(struct download)); 837 if(dnode != NULL) 838 { 839 printf("check...222 /tmp/python.tar\n"); 840 841 dnode->host = ostrcat("atemio.dyndns.tv", NULL, 0, 0); 842 dnode->page = ostrcat("/tmp/python.tar", NULL, 0, 0); 843 dnode->port = 80; 844 dnode->filename = ostrcat("/tmp/python.tar", NULL, 0, 0); 845 dnode->auth = ostrcat(HTTPAUTH, NULL, 0, 0); 846 dnode->connfd = -1; 847 dnode->ret = -1; 848 dnode->timeout = timeout; 849 addtimer(&tithekdownloadthread, START, 100, 1, (void*)dnode, NULL, NULL); 850 } 851 833 852 cmd = ostrcat("chmod -R 755 ", path, 0, 0); 834 853 system(cmd);
Note: See TracChangeset
for help on using the changeset viewer.