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) |
159 | 159 | } |
160 | 160 | } |
161 | 161 | |
| 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 | |
162 | 170 | gContext = new MythContext(MYTH_BINARY_VERSION); |
163 | 171 | if (!gContext->Init()) |
164 | 172 | { |
… |
… |
int main(int argc, char **argv) |
176 | 184 | return -1; |
177 | 185 | } |
178 | 186 | |
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 | | |
187 | 187 | LCD::SetupLCD(); |
188 | 188 | |
189 | 189 | if (class LCD *lcd = LCD::Get()) |