Permalink
Browse files

using the process id

  • Loading branch information...
1 parent 3bab4b4 commit 6d623398fb9bcd03ae0356c539103449c6543c2c Joachim Kainz committed Oct 3, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 examples/multi-worker.js
View
@@ -1,11 +1,11 @@
var http = require('http');
-var id = Math.random()*10000000000000000;
+var id = process.pid;
process.on('message', function(message, callback) {
var options = {
- host: 'www.google.com',
+ host: 'jolira.github.com',
port: 80,
- path: '/index.html'
+ path: '/backgrounder/'
};
http.get(options, function(res) {

0 comments on commit 6d62339

Please sign in to comment.