summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-12-15 12:48:29 -0500
committerNick Mathewson <nickm@torproject.org>2017-12-15 12:48:29 -0500
commit20f802ea3cd5d8b3993a101da03dfec95bc9049e (patch)
tree864bbaad076040c6071d2a171b3f7716b78ca5e9 /src/or/or.h
parentfdd5734875a49c4bfdebde45189038dd42306504 (diff)
downloadtor-20f802ea3cd5d8b3993a101da03dfec95bc9049e.tar.gz
tor-20f802ea3cd5d8b3993a101da03dfec95bc9049e.zip
Add an option to disable signal handler installation.
Closes ticket 24588.
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 9c53949879..91d6436389 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -4651,6 +4651,11 @@ typedef struct {
/** List of files that were opened by %include in torrc and torrc-defaults */
smartlist_t *FilesOpenedByIncludes;
+
+ /** If true, Tor shouldn't install any posix signal handlers, since it is
+ * running embedded inside another process.
+ */
+ int DisableSignalHandlers;
} or_options_t;
#define LOG_PROTOCOL_WARN (get_protocol_warning_severity_level())