Skip to content

spawning a coffee child process doesn't work as expected #3427

@paulpflug

Description

@paulpflug

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

console.log(process.pid)

Output when running coffee test.coffee

6596
stdout: 6436

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions