Skip to content

Commit

Permalink
Changed process.ARGV to process.argv
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanrolds committed Sep 9, 2012
1 parent e81c0a6 commit 09264e9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/tcpworkerserver.js
@@ -1,8 +1,8 @@

var util = require('util');

var port = parseInt(process.ARGV[2], 10);
var filename = process.ARGV[3];
var port = parseInt(process.argv[2], 10);
var filename = process.argv[3];

var worker = require("./tcpworker").startWorker(port);

Expand Down
2 changes: 1 addition & 1 deletion lib/worker.js
Expand Up @@ -285,5 +285,5 @@ exports._WorkerNode = WorkerNode;
if (module.parent && module.parent.filename.indexOf('worker_pool') === -1) {
// This is only exported if this module is not included from the worker pool
// module and if it is run by a child.
exports.worker = common.get_worker(process.ARGV.slice(), WorkerNode);
exports.worker = common.get_worker(process.argv.slice(), WorkerNode);
}
2 changes: 1 addition & 1 deletion lib/worker_pool.js
Expand Up @@ -537,4 +537,4 @@ WorkerPoolChild.prototype.terminate = function() {
exports.WorkerPool = WorkerPool;

// This value will only be defined, if this script is run by a worker
exports.worker = common.get_worker(process.ARGV.slice(), WorkerPoolNode);
exports.worker = common.get_worker(process.argv.slice(), WorkerPoolNode);
2 changes: 1 addition & 1 deletion test/fixtures/tcp-worker.js
Expand Up @@ -6,7 +6,7 @@ exports.libDir = path.join(exports.testDir, "../../lib");

require.paths.unshift(exports.libDir);

var port = parseInt(process.ARGV[2]);
var port = parseInt(process.argv[2]);

var sys = require("sys");
var worker = require("tcpworker").startWorker(port);
Expand Down

0 comments on commit 09264e9

Please sign in to comment.