diff options
author | George Kadianakis <desnacked@gmail.com> | 2011-08-15 17:26:03 +0200 |
---|---|---|
committer | George Kadianakis <desnacked@gmail.com> | 2011-08-15 17:26:03 +0200 |
commit | db4cde38109c677db14316ac77c240d7d61db386 (patch) | |
tree | 9ec5a30c649cdd5962eaadabc0fed1be5b6fdbbf /src/common/util.h | |
parent | ea3e9416c6c579735ff2b844a88605ae5e1cbbd2 (diff) | |
download | tor-db4cde38109c677db14316ac77c240d7d61db386.tar.gz tor-db4cde38109c677db14316ac77c240d7d61db386.zip |
Improve the code a tad.
* Use strcmpstart() instead of strcmp(x,y,strlen(y)).
* Warn the user if the managed proxy failed to launch.
* Improve function documentation.
* Use smartlist_len() instead of n_unconfigured_proxies.
* Split managed_proxy_destroy() to managed_proxy_destroy()
and managed_proxy_destroy_with_transports().
* Constification.
Diffstat (limited to 'src/common/util.h')
-rw-r--r-- | src/common/util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h index 12dc106ace..8bf4f7b137 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -353,6 +353,7 @@ void tor_check_port_forwarding(const char *filename, int tor_spawn_background(const char *const filename, int *stdout_read, int *stderr_read, const char **argv, const char **envp); +#define SPAWN_ERROR_MESSAGE "ERR: Failed to spawn background process - code " #ifdef MS_WINDOWS HANDLE load_windows_system_library(const TCHAR *library_name); |