/* -*- C -*-
- * $Id: ocamlbotwrapper.c,v 1.3 2007/06/28 23:18:28 rjones Exp $
+ * $Id: ocamlbotwrapper.c,v 1.8 2008/02/13 17:35:32 rjones Exp $
* SUID wrapper around ocaml program.
*/
/* 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_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_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