nyc
nyc copied to clipboard
control-C doesn't appear to kill wrapped process
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?