git.annexia.org
/
xavierbot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Version 0.9: Use a nickserv password, and some fixes for OCaml 3.11.
[xavierbot.git]
/
ocamlbotwrapper.c
diff --git
a/ocamlbotwrapper.c
b/ocamlbotwrapper.c
index
c852850
..
27c334f
100644
(file)
--- a/
ocamlbotwrapper.c
+++ b/
ocamlbotwrapper.c
@@
-1,5
+1,5
@@
/* -*- C -*-
/* -*- C -*-
- * $Id: ocamlbotwrapper.c,v 1.
4 2007/06/29 07:55:47
rjones Exp $
+ * $Id: ocamlbotwrapper.c,v 1.
8 2008/02/13 17:35:32
rjones Exp $
* SUID wrapper around ocaml program.
*/
* SUID wrapper around ocaml program.
*/
@@
-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 =
6
0; /* seconds */
+ lim.rlim_cur = lim.rlim_max =
1
0; /* seconds */
setrlimit (RLIMIT_CPU, &lim);
#endif
#ifdef RLIMIT_MEMLOCK
setrlimit (RLIMIT_CPU, &lim);
#endif
#ifdef RLIMIT_MEMLOCK