git.annexia.org
/
xavierbot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
98eb40d
)
wrapper: Increase some resource limits to allow modern OCaml 4 to run.
master
author
Richard W.M. Jones
<rjones@redhat.com>
Fri, 16 Aug 2013 10:17:30 +0000
(11:17 +0100)
committer
Richard W.M. Jones
<rjones@redhat.com>
Fri, 16 Aug 2013 10:17:30 +0000
(11:17 +0100)
ocamlbotwrapper.c
patch
|
blob
|
history
diff --git
a/ocamlbotwrapper.c
b/ocamlbotwrapper.c
index
27c334f
..
8793134
100644
(file)
--- a/
ocamlbotwrapper.c
+++ b/
ocamlbotwrapper.c
@@
-43,7
+43,7
@@
main ()
/* Set some limits. */
#ifdef RLIMIT_AS
/* Set some limits. */
#ifdef RLIMIT_AS
- lim.rlim_cur = lim.rlim_max =
32
* 1024 * 1024; /* bytes!?! */
+ lim.rlim_cur = lim.rlim_max =
256
* 1024 * 1024; /* bytes!?! */
setrlimit (RLIMIT_AS, &lim);
#endif
#ifdef RLIMIT_CORE
setrlimit (RLIMIT_AS, &lim);
#endif
#ifdef RLIMIT_CORE
@@
-51,7
+51,7
@@
main ()
setrlimit (RLIMIT_CORE, &lim);
#endif
#ifdef RLIMIT_CPU
setrlimit (RLIMIT_CORE, &lim);
#endif
#ifdef RLIMIT_CPU
- lim.rlim_cur = lim.rlim_max =
1
0; /* seconds */
+ lim.rlim_cur = lim.rlim_max =
6
0; /* seconds */
setrlimit (RLIMIT_CPU, &lim);
#endif
#ifdef RLIMIT_MEMLOCK
setrlimit (RLIMIT_CPU, &lim);
#endif
#ifdef RLIMIT_MEMLOCK
@@
-63,7
+63,7
@@
main ()
setrlimit (RLIMIT_MSGQUEUE, &lim);
#endif
#ifdef RLIMIT_NOFILE
setrlimit (RLIMIT_MSGQUEUE, &lim);
#endif
#ifdef RLIMIT_NOFILE
- lim.rlim_cur = lim.rlim_max =
10
;
+ lim.rlim_cur = lim.rlim_max =
32
;
setrlimit (RLIMIT_NOFILE, &lim);
#endif
#ifdef RLIMIT_NPROC
setrlimit (RLIMIT_NOFILE, &lim);
#endif
#ifdef RLIMIT_NPROC
@@
-75,7
+75,7
@@
main ()
setrlimit (RLIMIT_SIGPENDING, &lim);
#endif
#ifdef RLIMIT_STACK
setrlimit (RLIMIT_SIGPENDING, &lim);
#endif
#ifdef RLIMIT_STACK
- lim.rlim_cur = lim.rlim_max =
8
* 1024 * 1024; /* bytes */
+ lim.rlim_cur = lim.rlim_max =
32
* 1024 * 1024; /* bytes */
setrlimit (RLIMIT_STACK, &lim);
#endif
setrlimit (RLIMIT_STACK, &lim);
#endif