nyc icon indicating copy to clipboard operation
nyc copied to clipboard

control-C doesn't appear to kill wrapped process

Open showell opened this issue 4 years ago • 0 comments

Suppose you have a simple runaway program that you are going to invoke with nyc:

$ cat foo.js
for (i = 0; i < 10000000; ++i) {
    console.log(i);
}

If I run node foo.js I can stop the program with control-c.

If I run ./node_modules/.bin/nyc node foo.js, then I cannot stop the program with control-C.

Is this behavior intentional?

showell avatar Jan 07 '22 20:01 showell