From: Taylor R. Campbell Date: Mon, 11 Feb 2008 07:52:06 +0000 (+0000) Subject: Actually do avoid the race condition. X-Git-Tag: 20090517-FFI~336 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=011e2542573e7807360dd420e7a37d64c361cfba;p=mit-scheme.git Actually do avoid the race condition. --- diff --git a/v7/src/runtime/infutl.scm b/v7/src/runtime/infutl.scm index d25acb8bd..6eb0b19f6 100644 --- a/v7/src/runtime/infutl.scm +++ b/v7/src/runtime/infutl.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: infutl.scm,v 1.75 2008/02/10 21:35:46 riastradh Exp $ +$Id: infutl.scm,v 1.76 2008/02/11 07:52:06 riastradh Exp $ Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, @@ -759,7 +759,8 @@ USA. (or (file-exists? (cadar entries)) (begin (set-cdr! (cdar entries) #f) - #f))))) + #f)) + (cddar entries)))) (dynamic-wind (lambda () unspecific) (lambda () @@ -809,6 +810,7 @@ USA. (loop (cdr entries) entries) (begin (set-cdr! prev (cdr entries)) + (set-cdr! (cdar entries) #f) (deallocate-temporary-file (cadar entries)) (loop (cdr entries) prev))))))))