Skip to content

Commit 07c5cde

Browse files
committed
limit max CPU time per process
1 parent 95887a8 commit 07c5cde

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

server/bubblewrap.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#/bin/bash
22

3+
# Limit CPU time per process to 1h
4+
ulimit -t 3600
5+
# NB: The RSS limit (ulimit -m) is not supported by modern linux!
6+
37
LEAN_ROOT="$(cd $1 && lean --print-prefix)"
48
LEAN_PATH="$(cd $1 && lake env printenv LEAN_PATH)"
59

0 commit comments

Comments
 (0)