Permalink
Browse files

[docs] Update http example for changed api.

  • Loading branch information...
AvianFlu committed May 15, 2012
1 parent fec55e3 commit af276a957ee74467d371a182aee68e4a8e60a024
Showing with 6 additions and 1 deletion.
  1. +6 −1 examples/http.js
View
@@ -2,8 +2,13 @@
var prefork = require('../lib/prefork');
var http = require('http');
-prefork();
+prefork({
+ stdout: 'out.log',
+ stderr: 'err.log'
+});
http.createServer(function (req, res) {
+ console.log('stdout still running.');
+ console.error('stderr still running.');
res.end('I am still running');
}).listen(9090);

0 comments on commit af276a9

Please sign in to comment.