mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +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
@ -271,9 +271,6 @@ options_act(void) {
|
|||||||
if (options->command != CMD_RUN_TOR)
|
if (options->command != CMD_RUN_TOR)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (set_max_file_descriptors(options->MaxConn) < 0)
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
mark_logs_temp(); /* Close current logs once new logs are open. */
|
mark_logs_temp(); /* Close current logs once new logs are open. */
|
||||||
if (config_init_logs(options, 0)<0) /* Configure the log(s) */
|
if (config_init_logs(options, 0)<0) /* Configure the log(s) */
|
||||||
return -1;
|
return -1;
|
||||||
@ -282,6 +279,9 @@ options_act(void) {
|
|||||||
close_temp_logs();
|
close_temp_logs();
|
||||||
add_callback_log(LOG_NOTICE, LOG_ERR, control_event_logmsg);
|
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();
|
smartlist_t *sl = smartlist_create();
|
||||||
for (cl = options->RedirectExit; cl; cl = cl->next) {
|
for (cl = options->RedirectExit; cl; cl = cl->next) {
|
||||||
|
Loading…
Reference in New Issue
Block a user