Ticket #9734: mythtv-0.24-p1.patch

File mythtv-0.24-p1.patch, 939 bytes (added by jorcas33@…, 13 years ago)
  • mythtv/programs/mythwelcome/main.cpp

    diff --git a/mythtv/programs/mythwelcome/main.cpp b/mythtv/programs/mythwelcome/main.cpp
    index deef7e2..7e3f979 100644
    a b int main(int argc, char **argv) 
    159159        }
    160160    }
    161161
     162    if (!logfile.isEmpty())
     163    {
     164        if (!log_rotate(true))
     165            cerr << "cannot open logfile; using stdout/stderr" << endl;
     166        else
     167            signal(SIGHUP, &log_rotate_handler);
     168    }
     169
    162170    gContext = new MythContext(MYTH_BINARY_VERSION);
    163171    if (!gContext->Init())
    164172    {
    int main(int argc, char **argv) 
    176184        return -1;
    177185    }
    178186
    179     if (!logfile.isEmpty())
    180     {
    181         if (!log_rotate(true))
    182             cerr << "cannot open logfile; using stdout/stderr" << endl;
    183         else
    184             signal(SIGHUP, &log_rotate_handler);
    185     }
    186 
    187187    LCD::SetupLCD();
    188188
    189189    if (class LCD *lcd = LCD::Get())