Changeset 40119 for titan


Ignore:
Timestamp:
02/26/17 06:11:07 (7 years ago)
Author:
obi
Message:

add debug

Location:
titan/plugins/tithek
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/tithek/tithek.h

    r40117 r40119  
    540540{
    541541        int defpic = 0;
    542 
     542printf("tithekdownloadthread...1 /tmp/python.tar\n");
    543543        tithekdownloadcount++;
    544544
    545545        if(node != NULL)
    546546        {
     547printf("tithekdownloadthread...2 /tmp/python.tar\n");
     548
    547549                m_lock(&status.tithekmutex, 20);
    548550                if(file_exist(node->filename))
    549551                {
     552printf("tithekdownloadthread...3 /tmp/python.tar\n");
     553
    550554                        m_unlock(&status.tithekmutex, 20);
    551555                        goto end;
    552556                }
     557
     558printf("tithekdownloadthread...4 /tmp/python.tar\n");
    553559
    554560                FILE *fd; fd = fopen(node->filename, "w");
  • titan/plugins/tithek/tithek_global.h

    r40117 r40119  
    831831                        unlink("/tmp/hoster.tar");
    832832
     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
    833852                        cmd = ostrcat("chmod -R 755 ", path, 0, 0);
    834853                        system(cmd);
Note: See TracChangeset for help on using the changeset viewer.