Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mike Perry
Tor
Commits
4f300d54
Commit
4f300d54
authored
Aug 08, 2018
by
Nick Mathewson
🥄
Browse files
When RunAsDaemon is set, crypto_postfork() as needed
parent
f83b417b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/app/config/config.c
View file @
4f300d54
...
...
@@ -81,6 +81,7 @@
#include
"core/mainloop/cpuworker.h"
#include
"lib/crypt_ops/crypto_rand.h"
#include
"lib/crypt_ops/crypto_util.h"
#include
"lib/crypt_ops/crypto_init.h"
#include
"feature/dircache/dirserv.h"
#include
"feature/relay/dns.h"
#include
"core/or/dos.h"
...
...
@@ -2026,7 +2027,9 @@ options_act(const or_options_t *old_options)
/* Finish backgrounding the process */
if
(
options
->
RunAsDaemon
)
{
/* We may be calling this for the n'th time (on SIGHUP), but it's safe. */
finish_daemon
(
options
->
DataDirectory
);
int
forked
=
finish_daemon
(
options
->
DataDirectory
);
if
(
forked
)
crypto_postfork
();
}
/* See whether we need to enable/disable our once-a-second timer. */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment