Browse files

Ensure that process.kill is called with an integer > 0

  • Loading branch information...
1 parent 4a38be9 commit be16cb966ad2a8650d8e8351449945173d291c0d @DanBUK committed Jun 25, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/daemon.js
View
2 lib/daemon.js
@@ -55,7 +55,7 @@ daemon.kill = function (lock, callback) {
try {
// Stop the process with the pid in the lock file
var pid = parseInt(data.toString());
- process.kill(pid);
+ if (pid > 0) process.kill(pid);
// Remove the lock file
fs.unlink(lock, function (err) {

0 comments on commit be16cb9

Please sign in to comment.