Skip to content

Commit fb1e778

Browse files
committed
Merge branch 'main' of github.com:remy/nodemon
2 parents 6e33a6d + fa58024 commit fb1e778

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,9 @@ nodemon --signal SIGHUP server.js
264264
Your application can handle the signal as follows.
265265

266266
```js
267-
process.once("SIGHUP", function () {
267+
process.on("SIGHUP", function () {
268268
reloadSomeConfiguration();
269+
process.kill(process.pid, "SIGTERM");
269270
})
270271
```
271272

0 commit comments

Comments
 (0)