Skip to content

Commit

Permalink
Merge pull request #3 from adrianblynch/patch-1
Browse files Browse the repository at this point in the history
Fix typo and indentation in code sample
  • Loading branch information
nelsonic committed Apr 10, 2015
2 parents c42700d + 598056e commit fdd37d9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ npm install terminate --save
var terminate = require('terminate');
terminate(process.pid, function(err, done){
if(err) { // you will get an error if you did not supply a valid process.pid
console.log("Oopsy: " + err); // handle errors in your preferred way.
}
else {
console.log(done); // do what you do best!
}
})
console.log("Oopsy: " + err); // handle errors in your preferred way.
}
else {
console.log(done); // do what you do best!
}
});
```


Expand All @@ -53,7 +53,7 @@ were **Terminate**d before attempting to re-start.
## *Prevents* Zombie Processes

Imagine you are running your Node.js app on a Multi-Core Processor
and don't want to "waste" the CPU by only using a *one* of those cores
and don't want to "waste" the CPU by only using *one* of those cores
(remember: one of Node's *selling points* is that its [single-process running on a single-core](http://stackoverflow.com/questions/17959663/)),
you can "farm out" tasks to the other cores using [**Child Process**](https://nodejs.org/api/child_process.html)(es)

Expand Down

0 comments on commit fdd37d9

Please sign in to comment.