Skip to content

Commit 04eb45b

Browse files
committed
webOS: Disable core dumps
1 parent 2899bd1 commit 04eb45b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

retroarch.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@
4949
#include <process.h>
5050
#endif
5151

52+
#if defined(WEBOS)
53+
#include <sys/resource.h>
54+
#endif
55+
5256
#include <stdio.h>
5357
#include <stdlib.h>
5458
#include <stdarg.h>
@@ -5893,6 +5897,11 @@ int rarch_main(int argc, char *argv[], void *data)
58935897
}
58945898
#endif
58955899

5900+
#if defined(WEBOS)
5901+
struct rlimit limit = {0, 0};
5902+
setrlimit(RLIMIT_CORE, &limit);
5903+
#endif
5904+
58965905
rtime_init();
58975906

58985907
#if defined(ANDROID)

0 commit comments

Comments
 (0)