• David Dykstra's avatar
    Move the initialization of push_dir, which calls getcwd, to early in main. · c226b7c2
    David Dykstra authored
    The reason for that is that on SVR2-based UTS 2.1.2 (which along with many
    other old systems implements getcwd by forking "pwd") getcwd hangs when
    called when other child processes are running.
    
    I also added a quick return from push_dir if name == NULL so it doesn't
    actually have to chdir anywhere when just initializing.
    
    An initializing call to push_dir("/",0) had previously been put in at the
    beginning of daemon_main() to avoid calling getcwd after a chroot, but
    since that is no longer I needed I removed it and changed the call to
    chdir("/") after chroot into a push_dir("/",0) so it will remember the
    correct current directory.
    c226b7c2
Name
Last commit
Last update
lib Loading commit data...
packaging/redhat/5.0 Loading commit data...
support Loading commit data...
zlib Loading commit data...
.cvsignore Loading commit data...
.ignore Loading commit data...
COPYING Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
access.c Loading commit data...
acconfig.h Loading commit data...
aclocal.m4 Loading commit data...
authenticate.c Loading commit data...
byteorder.h Loading commit data...
checksum.c Loading commit data...
cleanup.c Loading commit data...
clientserver.c Loading commit data...
compat.c Loading commit data...
config.guess Loading commit data...
config.sub Loading commit data...
configure.in Loading commit data...
connection.c Loading commit data...
errcode.h Loading commit data...
exclude.c Loading commit data...
fileio.c Loading commit data...
flist.c Loading commit data...
generator.c Loading commit data...
hlink.c Loading commit data...
install-sh Loading commit data...
io.c Loading commit data...
loadparm.c Loading commit data...
log.c Loading commit data...
main.c Loading commit data...
match.c Loading commit data...
md4.c Loading commit data...
md4.h Loading commit data...
mkproto.awk Loading commit data...
options.c Loading commit data...
params.c Loading commit data...
receiver.c Loading commit data...
rsync.c Loading commit data...
rsync.h Loading commit data...
rsync.yo Loading commit data...
rsyncd.conf.yo Loading commit data...
sender.c Loading commit data...
socket.c Loading commit data...
syscall.c Loading commit data...
tech_report.tex Loading commit data...
test.sh Loading commit data...
token.c Loading commit data...
uidlist.c Loading commit data...
util.c Loading commit data...
version.h Loading commit data...