mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-04-23 20:31:25 +00:00
bugfix:kill web server when father process exits
This commit is contained in:
parent
bcb1f9d895
commit
344326706e
1
proxy.js
1
proxy.js
@ -155,6 +155,7 @@ function proxyServer(option){
|
|||||||
console.log('AnyProxy is about to exit with code:', code);
|
console.log('AnyProxy is about to exit with code:', code);
|
||||||
process.exit();
|
process.exit();
|
||||||
});
|
});
|
||||||
|
|
||||||
process.on("uncaughtException",function(err){
|
process.on("uncaughtException",function(err){
|
||||||
child_webServer.kill();
|
child_webServer.kill();
|
||||||
console.log('Caught exception: ' + err);
|
console.log('Caught exception: ' + err);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user