Created
October 19, 2012 01:42
-
-
Save isaacs/3915800 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat package.json | |
{ | |
"name": "npm-test-start", | |
"version": "0.0.0", | |
"description": "just an npm test", | |
"scripts": { | |
"test": "exit 0", | |
"start": "node server.js" | |
}, | |
"repository": "", | |
"author": "", | |
"license": "BSD" | |
} | |
$ cat server.js | |
// just a thing to keep it alive. | |
setInterval(function () { | |
console.log('still alive') | |
}, 1000) | |
$ npm start | |
> npm-test-start@0.0.0 start /Users/isaacs/dev/js/npm/test/packages/npm-test-start | |
> node server.js | |
still alive | |
still alive | |
still alive | |
^C |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using the same test case:
But then in another window:
The processes to look at here are 2002 (npm), 2005 (sh -c) and 2006 (node).
So, then I kill npm:
so npm's gone...but what about my node process?
It's still there. And, in the first window, I see: