mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-05-28 11:28:58 +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);
|
||||
process.exit();
|
||||
});
|
||||
|
||||
process.on("uncaughtException",function(err){
|
||||
child_webServer.kill();
|
||||
console.log('Caught exception: ' + err);
|
||||
|
Loading…
x
Reference in New Issue
Block a user