diff options
author | fergus.henderson <fergushenderson@users.noreply.github.com> | 2010-08-19 20:07:45 +0000 |
---|---|---|
committer | fergus.henderson <fergushenderson@users.noreply.github.com> | 2010-08-19 20:07:45 +0000 |
commit | d6c36cec73f2ef6c0e612c1acb9f42549e035717 (patch) | |
tree | fdc619e67bcf50280c96bc423ed49d9c0578e10b /src/daemon.h | |
parent | dc2c66bf523a70178fc486abcbdfa9c2a379dbb1 (diff) | |
download | distcc-git-d6c36cec73f2ef6c0e612c1acb9f42549e035717.tar.gz |
Change directory back to the original server working directory after each
distcc-pump compilation. This fixes a bug where distcc-pump was changing
to a directory and then deleting that directory and not changing back
to the original directory. That caused problems when you used a server
first in distcc-pump mode and then in distcc mode, and the compiler
invoked a shell script. The compilation would succeed, but the shell would
report a confusing warning ("shell-init: error retrieving current directory:
getcwd: cannot access parent directories: No such file or directory").
Diffstat (limited to 'src/daemon.h')
-rw-r--r-- | src/daemon.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/daemon.h b/src/daemon.h index 36a7fd2..d48bb6b 100644 --- a/src/daemon.h +++ b/src/daemon.h @@ -22,6 +22,8 @@ /* daemon.c */ +extern const char *dcc_daemon_wd; + int dcc_refuse_root(void); int dcc_set_lifetime(void); int dcc_log_daemon_started(const char *role); |