diff --git a/authority/server/run.js b/authority/server/run.js index 92d335f31b651242b547876e1e95b914fc483249..5a88a9fb56b96b7c44f2ecbd6298dba9d869cc8f 100644 --- a/authority/server/run.js +++ b/authority/server/run.js @@ -40,7 +40,7 @@ exports.handler = function(request, response, serveFile) { }); } else if (urlpath === "/code_update") { console.log("code updated. shutting down."); - require('process').exit(); + process.exit(); } else { // node.js takes care of sanitizing the request path serveFile(path.join(STATIC_DIR, urlpath), response); diff --git a/primary/server/run.js b/primary/server/run.js index ba1e47d843d8a34b7f74f301fa34f8f7883f647e..02e579bcb6eff3a49cf6c35a95d806dd22fe84e5 100644 --- a/primary/server/run.js +++ b/primary/server/run.js @@ -38,7 +38,7 @@ exports.handler = function(request, response, serveFile) { }); } else if (urlpath === "/code_update") { console.log("code updated. shutting down."); - require('process').exit(); + process.exit(); } else { // node.js takes care of sanitizing the request path if (urlpath == "/") urlpath = "/index.html" diff --git a/run.js b/run.js index a95b9e561f7a0309549b97b67044cd41526e1e43..f5a48ff58e0a522d0a15c2a3c96fc69bc364a6f1 100644 --- a/run.js +++ b/run.js @@ -161,7 +161,7 @@ dirs.forEach(function(dirObj) { } } catch(e) { console.log("Error loading " + handlerPath + ": " + e); - require('process').exit(1); + process.exit(1); } var so = { diff --git a/verifier/server/run.js b/verifier/server/run.js index 761a44abd413d368e0a607b449b916e7a1289f5a..5b7074ee11fa61299a3ab8a14b7a4a30c819fd22 100644 --- a/verifier/server/run.js +++ b/verifier/server/run.js @@ -19,7 +19,7 @@ exports.handler = function(request, response, serveFile) { } } else if (urlpath === "/code_update") { console.log("code updated. shutting down."); - require('process').exit(); + process.exit(); } else { // node.js takes care of sanitizing the request path serveFile(path.join(STATIC_DIR, urlpath), response);