Skip to content

Commit ee392c0

Browse files
committed
Add termination processing
nodejs/node#4182
1 parent 6caa69c commit ee392c0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CRANE_X7_JS/server.js

+4
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@ io.on('connection', function(socket){
129129
});
130130
});
131131

132+
process.on('SIGINT', function() {
133+
process.exit();
134+
});
135+
132136
var ip_port = getLocalAddress().ipv4;
133137
http.listen(8080,ip_port, function(){
134138
console.log('port * : 8080');

0 commit comments

Comments
 (0)