Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit be16cb966ad2a8650d8e8351449945173d291c0d 1 parent 4a38be9
@DanBUK authored
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) {
Please sign in to comment.
Something went wrong with that request. Please try again.