Skip to content

Commit

Permalink
Add parameters so as to actually use the ulimit facility.
Browse files Browse the repository at this point in the history
  • Loading branch information
kpreid committed Jul 5, 2011
1 parent 4d5efe2 commit 31123c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion murepl.e
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ def http := {
makeHTTPTransport(8012)
}

def murepl := makeMurepl([=> http], makeIsolatedVat, println)
def limits := ["cpuSeconds" => 25]

def murepl := makeMurepl([=> http], limits, makeIsolatedVat, println)

stderr.println("murepl.e: done init!")
interp.blockAtTop()
4 changes: 2 additions & 2 deletions src/org/switchb/e/murepl/makeMurepl.emaker
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ def CONNECTING {}
def CONNECTED {}
def DISCONNECTED {}

def makeMurepl(transportDefs :Map[String, ::"Thunk"], makeIsolatedVat, trace) {
def makeMurepl(transportDefs :Map[String, ::"Thunk"], limits, makeIsolatedVat, trace) {
var labelCounter := 0
def makeReplVat := makeInitPool(def _makeReplVat() {
def label := `murepl-${labelCounter += 1}`
trace(`Making vat $label`)

def [ic, oc] := makeIsolatedVat(label, [].asMap())
def [ic, oc] := makeIsolatedVat(label, limits)

def repl := ic <- seed(e`fn label {
<import:org.switchb.e.murepl.makeRepl>(
Expand Down

0 comments on commit 31123c2

Please sign in to comment.