Misc. ancient changes to xavierbot.
[xavierbot.git] / ocamlbotwrapper.c
index 8557ed1..266bb17 100644 (file)
@@ -1,5 +1,5 @@
 /* -*- C -*-
- * $Id: ocamlbotwrapper.c,v 1.6 2007/06/29 21:43:21 rjones Exp $
+ * $Id: ocamlbotwrapper.c,v 1.7 2008/01/23 15:44:46 rjones Exp $
  * SUID wrapper around ocaml program.
  */
 
@@ -67,7 +67,10 @@ main ()
   setrlimit (RLIMIT_NOFILE, &lim);
 #endif
 #ifdef RLIMIT_NPROC
-  lim.rlim_cur = lim.rlim_max = 2;
+  /* If you want to run several instances of xavierbot, you may need
+   * to increase this limit.
+   */
+  lim.rlim_cur = lim.rlim_max = 4;
   setrlimit (RLIMIT_NPROC, &lim);
 #endif
 #ifdef RLIMIT_SIGPENDING