Changeset 11535


Ignore:
Timestamp:
Dec 15, 2010, 2:55:20 PM (11 years ago)
Author:
charles
Message:

(trunk libT) #3764 "script-torrent-done shouldn't block libtransmission" -- add the "calling script ..." line back into the logfile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r11534 r11535  
    18641864    {
    18651865        char * cmd[] = { tr_strdup( script ), NULL };
    1866         char * env[] = { tr_strdup_printf( "TR_APP_VERSION=%s", SHORT_VERSION_STRING ),
    1867                          tr_strdup_printf( "TR_TIME_LOCALTIME=%s", timeStr ),
    1868                          tr_strdup_printf( "TR_TORRENT_DIR=%s", tor->currentDir ),
    1869                          tr_strdup_printf( "TR_TORRENT_ID=%d", tr_torrentId( tor ) ),
    1870                          tr_strdup_printf( "TR_TORRENT_HASH=%s", tor->info.hashString ),
    1871                          tr_strdup_printf( "TR_TORRENT_NAME=%s", tr_torrentName( tor ) ),
    1872                          NULL };
     1866        char * env[] = {
     1867            tr_strdup_printf( "TR_APP_VERSION=%s", SHORT_VERSION_STRING ),
     1868            tr_strdup_printf( "TR_TIME_LOCALTIME=%s", timeStr ),
     1869            tr_strdup_printf( "TR_TORRENT_DIR=%s", tor->currentDir ),
     1870            tr_strdup_printf( "TR_TORRENT_ID=%d", tr_torrentId( tor ) ),
     1871            tr_strdup_printf( "TR_TORRENT_HASH=%s", tor->info.hashString ),
     1872            tr_strdup_printf( "TR_TORRENT_NAME=%s", tr_torrentName( tor ) ),
     1873            NULL };
     1874
     1875        tr_torinf( tor, "Calling script \"%s\"", script );
     1876
    18731877        if( !fork( ) )
    18741878        {
    18751879            execve( script, cmd, env );
    1876             tr_torerr( tor, _( "Script failed with errno %d (%s)" ), errno, strerror(errno) );
    18771880            _exit( 0 );
    18781881        }
Note: See TracChangeset for help on using the changeset viewer.