I have two files
test.coffee
spawn = require('child_process').spawn
child = spawn("coffee",["subtest.coffee"])
child.stdout.on 'data', (data) ->
console.log('stdout: ' + data)
console.log(child.pid)
and
subtest.coffee
Output when running coffee test.coffee
The pids should match..
So coffee makes its own child process?
The problem is, that the child process cannot be killed..
See here
and here