mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
simplify options_act()
This commit is contained in:
parent
9a4b0446b0
commit
05e55d82b6
@ -1280,14 +1280,14 @@ options_act(or_options_t *old_options)
|
||||
return 0;
|
||||
|
||||
/* Finish backgrounding the process */
|
||||
if (running_tor && options->RunAsDaemon) {
|
||||
if (options->RunAsDaemon) {
|
||||
/* We may be calling this for the n'th time (on SIGHUP), but it's safe. */
|
||||
finish_daemon(options->DataDirectory);
|
||||
}
|
||||
|
||||
/* Write our pid to the pid file. If we do not have write permissions we
|
||||
* will log a warning */
|
||||
if (running_tor && options->PidFile)
|
||||
if (options->PidFile)
|
||||
write_pidfile(options->PidFile);
|
||||
|
||||
/* Register addressmap directives */
|
||||
|
Loading…
Reference in New Issue
Block a user