I need to spawn a child process from node.js
, whilst using ulimit
to keep it from using to much memory.
Following the docs, it wasn't hard to get the basic spawn working: child = spawn("coffee", ["app.coffee"])
.
However, doing what I do below just makes the spawn die silently.
child = spawn("ulimit", ["-m 65536;", "coffee app.coffee"])
If I would run ulimit -m 65536; coffee app.coffee
- it works as intented.
What am I doing wrong here?