From c792510d1ef8a64e814994f41775007b17d6884f Mon Sep 17 00:00:00 2001 From: Brice BERNARD Date: Sun, 7 Jan 2018 09:47:40 +0100 Subject: [PATCH] Fix emitted signal when restarting typo with `SIGNUSR2` it should be `SIGUSR2`, removed comment as obvious. --- lib/serve.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/serve.js b/lib/serve.js index 141b9f3..ef2e8e5 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -11,9 +11,8 @@ const listening = require('./listening') const log = require('./log') module.exports = async (file, flags, restarting) => { - // Emit SIGNUSR2 to signal restart to user code if (restarting) { - process.emit('SIGNUSR2') + process.emit('SIGUSR2') } // And then load the files