Permalink
Browse files

Actually works :P

  • Loading branch information...
1 parent 45cd836 commit 72398deacf105d17d937793a696c74e8baa1d65d @thomaschaaf thomaschaaf committed May 2, 2012
Showing with 14 additions and 2 deletions.
  1. +14 −1 app.js
  2. +0 −1 init
View
@@ -1,3 +1,17 @@
+try {
+ process.setgid("node");
+}
+catch (err) {
+ console.log("Setting Group failed");
+}
+
+try {
+ process.setuid("node");
+}
+catch (err) {
+ console.log("Setting User failed");
+}
+
/**
* Module dependencies.
*/
@@ -39,7 +53,6 @@ app.configure(function(){
var timeTaken = (new Date().getTime() - startTime.getTime()) / 1000;
var kbs = ((req.headers['content-length']/1024)/timeTaken);
console.log(timeTaken + " - " + kbs + "kb/s");
- console.log(req);
// logger.log((req.headers['content-length']/1024) + " - "+ timeTaken + " (" + kbs + "kb/s)");
});
form.parse(req);
View
@@ -60,7 +60,6 @@
# !!! /tmp/foo # Created by the command "express /tmp/foo"
# !!! /tmp/foo.sh # This script
# !!!
-
DESC="node-eyefi"
NAME="app.js"
DIR=`/usr/bin/dirname $(/bin/readlink -f $0)`

0 comments on commit 72398de

Please sign in to comment.