diff --git a/mythtv/programs/mythbackend/main.cpp b/mythtv/programs/mythbackend/main.cpp
index cb2cbcc..8d24ebc 100644
a
|
b
|
|
| 1 | #include "mythconfig.h" |
| 2 | #if HAVE_SETRLIMIT |
| 3 | #include <sys/resource.h> |
| 4 | #endif |
| 5 | |
1 | 6 | #ifndef _WIN32 |
2 | 7 | #include <QCoreApplication> |
3 | 8 | #else |
… |
… |
static void qt_exit(int) |
54 | 59 | |
55 | 60 | int main(int argc, char **argv) |
56 | 61 | { |
| 62 | #if HAVE_SETRLIMIT |
| 63 | // enable a core dump file |
| 64 | struct rlimit rl = {RLIM_INFINITY, RLIM_INFINITY}; |
| 65 | setrlimit(RLIMIT_CORE, &rl); |
| 66 | #endif |
| 67 | |
57 | 68 | MythBackendCommandLineParser cmdline; |
58 | 69 | if (!cmdline.Parse(argc, argv)) |
59 | 70 | { |
diff --git a/mythtv/programs/mythfrontend/main.cpp b/mythtv/programs/mythfrontend/main.cpp
index 5a6967a..899c014 100644
a
|
b
|
|
3 | 3 | #include <signal.h> |
4 | 4 | #include <cerrno> |
5 | 5 | |
| 6 | #include "mythconfig.h" |
| 7 | #if HAVE_SETRLIMIT |
| 8 | #include <sys/resource.h> |
| 9 | #endif |
| 10 | |
6 | 11 | #include <iostream> |
7 | 12 | using namespace std; |
8 | 13 | |
… |
… |
using namespace std; |
18 | 23 | #include <QTimer> |
19 | 24 | |
20 | 25 | #include "previewgeneratorqueue.h" |
21 | | #include "mythconfig.h" |
22 | 26 | #include "tv.h" |
23 | 27 | #include "proglist.h" |
24 | 28 | #include "progfind.h" |
… |
… |
int main(int argc, char **argv) |
1436 | 1440 | bool bPromptForBackend = false; |
1437 | 1441 | bool bBypassAutoDiscovery = false; |
1438 | 1442 | |
| 1443 | #if HAVE_SETRLIMIT |
| 1444 | // enable a core dump file |
| 1445 | struct rlimit rl = {RLIM_INFINITY, RLIM_INFINITY}; |
| 1446 | setrlimit(RLIMIT_CORE, &rl); |
| 1447 | #endif |
| 1448 | |
1439 | 1449 | MythFrontendCommandLineParser cmdline; |
1440 | 1450 | if (!cmdline.Parse(argc, argv)) |
1441 | 1451 | { |