diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2007-01-25 23:22:33 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2007-01-25 23:22:33 +0000 |
commit | 2b9c4a579c4c124e48f6aaf7d01fdcf2721d08ab (patch) | |
tree | 6bf4b677efd1cff4671e7595d62b510043c636ab /usr.bin/cvs/checkout.c | |
parent | bd5da775859dac29738a490ad7086ab80bd55a04 (diff) |
when acting as a server - immediatly after we checkout a file
remove its temp copy so our worklist doesnt contain a
bazillion entries when checking out src.
as a result, we now use very little memory in server mode.
found and tested by otto@
ok cool and the gang.
Diffstat (limited to 'usr.bin/cvs/checkout.c')
-rw-r--r-- | usr.bin/cvs/checkout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/checkout.c b/usr.bin/cvs/checkout.c index fca1b74fc42..d652b5ea136 100644 --- a/usr.bin/cvs/checkout.c +++ b/usr.bin/cvs/checkout.c @@ -1,4 +1,4 @@ -/* $OpenBSD: checkout.c,v 1.82 2007/01/18 08:49:08 xsa Exp $ */ +/* $OpenBSD: checkout.c,v 1.83 2007/01/25 23:22:32 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * @@ -308,7 +308,7 @@ cvs_checkout_file(struct cvs_file *cf, RCSNUM *rnum, int co_flags) /* XXX - fd race below */ rcs_rev_write_stmp(cf->file_rcs, rnum, template, 0); cvs_remote_send_file(template); - (void)unlink(template); + cvs_worklist_run(&temp_files, cvs_worklist_unlink); xfree(template); } |