aboutsummaryrefslogtreecommitdiff
path: root/src/lib/process/daemon.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-09-13 08:58:28 -0400
committerNick Mathewson <nickm@torproject.org>2018-09-13 08:58:28 -0400
commit75d6609eb1b1503f28054479c92d4f9ad6fe617d (patch)
tree42a087042343842434289a66d19dcd23e27aa0cf /src/lib/process/daemon.h
parentbfc847255afb093b89dd82687d796e3e3c7fcb89 (diff)
downloadtor-75d6609eb1b1503f28054479c92d4f9ad6fe617d.tar.gz
tor-75d6609eb1b1503f28054479c92d4f9ad6fe617d.zip
Run crypto_prefork() before start_daemon().
Without this, RunAsDaemon breaks NSS. Fixes bug 27664; bug not in any released Tor.
Diffstat (limited to 'src/lib/process/daemon.h')
-rw-r--r--src/lib/process/daemon.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/process/daemon.h b/src/lib/process/daemon.h
index c3b78029af..e33bd56701 100644
--- a/src/lib/process/daemon.h
+++ b/src/lib/process/daemon.h
@@ -11,7 +11,11 @@
#ifndef TOR_DAEMON_H
#define TOR_DAEMON_H
+#include <stdbool.h>
+
int start_daemon(void);
int finish_daemon(const char *desired_cwd);
+bool start_daemon_has_been_called(void);
+
#endif