mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-09-20 21:16:22 +02:00
log: Remove duplicate code and an outdated comment
Preparation for 31854.
This commit is contained in:
parent
de66bed604
commit
4c88ebcf47
@ -584,8 +584,7 @@ logv,(int severity, log_domain_mask_t domain, const char *funcname,
|
||||
/* check that severity is sane. Overrunning the masks array leads to
|
||||
* interesting and hard to diagnose effects */
|
||||
raw_assert(severity >= LOG_ERR && severity <= LOG_DEBUG);
|
||||
/* check that we've initialised the log mutex before we try to lock it */
|
||||
raw_assert(log_mutex_initialized);
|
||||
|
||||
LOCK_LOGS();
|
||||
|
||||
if ((! (domain & LD_NOCB)) && pending_cb_messages
|
||||
@ -866,9 +865,6 @@ logs_close_sigsafe(void)
|
||||
* logfiles (it is probably present, but it might not be due to thread
|
||||
* racing issues). After this function is called, the caller shouldn't
|
||||
* refer to <b>victim</b> anymore.
|
||||
*
|
||||
* Long-term, we need to do something about races in the log subsystem
|
||||
* in general. See bug 222 for more details.
|
||||
*/
|
||||
static void
|
||||
delete_log(logfile_t *victim)
|
||||
|
Loading…
Reference in New Issue
Block a user