mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
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. svn:r15018
This commit is contained in:
@@ -3874,6 +3874,9 @@ options_init_logs(or_options_t *options, int validate_only)
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user