Skip to content

Commit

Permalink
[docs] Update http example for changed api.
Browse files Browse the repository at this point in the history
  • Loading branch information
AvianFlu committed May 15, 2012
1 parent fec55e3 commit af276a9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion examples/http.js
Expand Up @@ -2,8 +2,13 @@
var prefork = require('../lib/prefork'); var prefork = require('../lib/prefork');
var http = require('http'); var http = require('http');


prefork(); prefork({
stdout: 'out.log',
stderr: 'err.log'
});


http.createServer(function (req, res) { http.createServer(function (req, res) {
console.log('stdout still running.');
console.error('stderr still running.');
res.end('I am still running'); res.end('I am still running');
}).listen(9090); }).listen(9090);

0 comments on commit af276a9

Please sign in to comment.