[or-cvs] r15018: Tor 0.2.1.x can start with 'log notice stdout' and 'runasdae (tor/branches/tor-0_2_0-patches/src/or)

arma at seul.org arma at seul.org
Sun Jun 8 00:34:34 UTC 2008


Author: arma
Date: 2008-06-07 20:34:34 -0400 (Sat, 07 Jun 2008)
New Revision: 15018

Modified:
   tor/branches/tor-0_2_0-patches/src/or/config.c
Log:
Tor 0.2.1.x can start with 'log notice stdout' and 'runasdaemon 1'
both set. Earlier Tors cannot. This will be considered a feature
of 0.2.1.x, not a bug in 0.2.0.x.


Modified: tor/branches/tor-0_2_0-patches/src/or/config.c
===================================================================
--- tor/branches/tor-0_2_0-patches/src/or/config.c	2008-06-07 20:52:00 UTC (rev 15017)
+++ tor/branches/tor-0_2_0-patches/src/or/config.c	2008-06-08 00:34:34 UTC (rev 15018)
@@ -3874,6 +3874,9 @@
       ok = 0; goto cleanup;
     }
     if (!strcasecmp(smartlist_get(elts,1), "stdout")) {
+      /* Starting in 0.2.1.x, we will just decline to open the log file
+       * to stdout, rather than failing the whole program. But I'm leaving
+       * this intact for here so we can stabilize 0.2.0.x. -RD */
       if (daemon) {
         log_warn(LD_CONFIG, "Can't log to stdout with RunAsDaemon set.");
         ok = 0; goto cleanup;



More information about the tor-commits mailing list