From 85d1666ece16544f1cf25c379d579c179246f1b0 Mon Sep 17 00:00:00 2001 From: Lloyd Hilaiel <lloyd@hilaiel.com> Date: Tue, 3 May 2011 08:33:51 -0600 Subject: [PATCH] fix last commit. process is a global that isn't included with require --- authority/server/run.js | 2 +- primary/server/run.js | 2 +- run.js | 2 +- verifier/server/run.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/authority/server/run.js b/authority/server/run.js index 92d335f31..5a88a9fb5 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 ba1e47d84..02e579bcb 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 a95b9e561..f5a48ff58 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 761a44abd..5b7074ee1 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); -- GitLab