diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-08-09 10:42:37 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-08-09 10:45:48 -0400 |
commit | eb43401bfb6d69db66d256582a99e63de7d222d8 (patch) | |
tree | a3a27cd622b1d4797fa28bfe87d09d56401ba683 /src/common/util.h | |
parent | 94352368db9045a9704c713dbbc0f41ecc511910 (diff) | |
download | tor-eb43401bfb6d69db66d256582a99e63de7d222d8.tar.gz tor-eb43401bfb6d69db66d256582a99e63de7d222d8.zip |
Add a 'NoExec' option that causes tor_spawn_background() to fail
Core of an implementation for 22976.
Diffstat (limited to 'src/common/util.h')
-rw-r--r-- | src/common/util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h index df581d2405..f50cf043a4 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -396,6 +396,8 @@ void tor_check_port_forwarding(const char *filename, struct smartlist_t *ports_to_forward, time_t now); +void tor_disable_spawning_background_processes(void); + typedef struct process_handle_t process_handle_t; typedef struct process_environment_t process_environment_t; int tor_spawn_background(const char *const filename, const char **argv, |