diff options
author | Roger Dingledine <arma@torproject.org> | 2005-04-06 19:07:38 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-04-06 19:07:38 +0000 |
commit | 652dde72f1beed1fb83d137314f47aff15b01036 (patch) | |
tree | f414cd4a41a69d367f68f4c4fdaeae054b5e2aad /src/common/util.h | |
parent | 8596947ee220a4ff342cfd72d86cabbf8b6966d8 (diff) | |
download | tor-652dde72f1beed1fb83d137314f47aff15b01036.tar.gz tor-652dde72f1beed1fb83d137314f47aff15b01036.zip |
bugfix: chdir to your datadirectory at the *end* of the
daemonize process, not the beginning. this was a problem
because the first time you run tor, if your datadir isn't
there, and you have runasdaemon set to 1, it will try to
chdir to it before it tries to create it. oops.
svn:r4033
Diffstat (limited to 'src/common/util.h')
-rw-r--r-- | src/common/util.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/util.h b/src/common/util.h index 6f23e219a6..b3262d87a3 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -132,8 +132,8 @@ int tor_inet_ntoa(struct in_addr *in, char *buf, size_t buf_len); int is_plausible_address(const char *name); /* Process helpers */ -void start_daemon(const char *desired_cwd); -void finish_daemon(void); +void start_daemon(void); +void finish_daemon(const char *desired_cwd); void write_pidfile(char *filename); #endif |