mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-23 06:35:28 +01:00
call set_max_file_descriptors() after we configure logs, so
it doesn't always do loglevel info logs on windows. svn:r2987
This commit is contained in:
parent
e24057b2bf
commit
179ad27b34
1 changed files with 3 additions and 3 deletions
|
@ -271,9 +271,6 @@ options_act(void) {
|
|||
if (options->command != CMD_RUN_TOR)
|
||||
return 0;
|
||||
|
||||
if (set_max_file_descriptors(options->MaxConn) < 0)
|
||||
return -1;
|
||||
|
||||
mark_logs_temp(); /* Close current logs once new logs are open. */
|
||||
if (config_init_logs(options, 0)<0) /* Configure the log(s) */
|
||||
return -1;
|
||||
|
@ -282,6 +279,9 @@ options_act(void) {
|
|||
close_temp_logs();
|
||||
add_callback_log(LOG_NOTICE, LOG_ERR, control_event_logmsg);
|
||||
|
||||
if (set_max_file_descriptors(options->MaxConn) < 0)
|
||||
return -1;
|
||||
|
||||
{
|
||||
smartlist_t *sl = smartlist_create();
|
||||
for (cl = options->RedirectExit; cl; cl = cl->next) {
|
||||
|
|
Loading…
Add table
Reference in a new issue