Skip to content

Commit

Permalink
Fix emitted signal when restarting (#61)
Browse files Browse the repository at this point in the history
typo with `SIGNUSR2` it should be `SIGUSR2`, removed comment as obvious.
  • Loading branch information
brikou authored and leo committed Jan 7, 2018
1 parent c60db49 commit 0f761fa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/serve.js
Expand Up @@ -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
Expand Down

0 comments on commit 0f761fa

Please sign in to comment.