Browse Source

cwd to datadir if it's defined, rather than /
this way people can get cores if they want to


svn:r1171

Roger Dingledine 21 years ago
parent
commit
928db6dadc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/or/main.c

+ 1 - 1
src/or/main.c

@@ -672,7 +672,7 @@ int tor_main(int argc, char *argv[]) {
 #endif
 
   if (options.RunAsDaemon) {
-    start_daemon();
+    start_daemon(options.DataDirectory);
   }
 
   if(options.ORPort) { /* only spawn dns handlers if we're a router */