8000 SIGTERM -> SIGINT · HowProgrammingWorks/Threads@878f23f · GitHub
[go: up one dir, main page]

Skip to content

Commit 878f23f

committed
SIGTERM -> SIGINT
1 parent 7f871d6 commit 878f23f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

JavaScript/3-server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ worker.on('message', msg => {
1111
}
1212
});
1313

14-
process.on('SIGTERM', () => {
14+
process.on('SIGINT', () => {
1515
worker.terminate(() => {
1616
console.log('HTTP Server Stopped');
1717
});

JavaScript/4-share.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ worker.on('message', msg => {
1414
}
1515
});
1616

17-
process.on('SIGTERM', () => {
17+
process.on('SIGINT', () => {
1818
worker.terminate(() => {
1919
console.log('Bye');
2020
});

JavaScript/5-share.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ setInterval(() => {
1111
console.dir(buffer);
1212
}, 100);
1313

14-
process.on('SIGTERM', () => {
14+
process.on('SIGINT', () => {
1515
worker.terminate(() => {
1616
console.log('Bye');
1717
});

0 commit comments

Comments
 (0)
0