emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#32126: closed (call-with-temporary-directory rarel


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#32126: closed (call-with-temporary-directory rarely cleans up after itself)
Date: Fri, 13 Jul 2018 21:35:01 +0000

Your message dated Fri, 13 Jul 2018 17:34:30 -0400
with message-id <address@hidden>
and subject line Re: bug#32126: call-with-temporary-directory rarely cleans up 
after itself
has caused the debbugs.gnu.org bug report #32126,
regarding call-with-temporary-directory rarely cleans up after itself
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
32126: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=32126
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: call-with-temporary-directory rarely cleans up after itself Date: Wed, 11 Jul 2018 14:59:37 -0400 User-agent: Mutt/1.10.0 (2018-05-17)
While testing something, I noticed that temporary directories created
with ((guix utils) call-with-temporary-directory) were not being
deleted.

This procedure is documented to delete the directories after execution:

"Call PROC with a name of a temporary directory; close the directory and
delete it when leaving the dynamic extent of this call."

It uses rmdir, which is documented as follows: "Remove the existing
directory named by path. The directory must be empty for this to
succeed." [0]

I think this is a case where one expects the directory to be deleted as
with `rm -rf`, regardless of whether or not it is empty.

Should we alter the call-with-temporary-directory procedure to use
((guix build utils) delete-file-recursively)?

[0]
https://www.gnu.org/software/guile/manual/html_node/File-System.html#index-rmdir

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message --- Subject: Re: bug#32126: call-with-temporary-directory rarely cleans up after itself Date: Fri, 13 Jul 2018 17:34:30 -0400 User-agent: Mutt/1.10.0 (2018-05-17)
On Thu, Jul 12, 2018 at 05:37:18PM +0200, Ludovic Courtès wrote:
> Hi Leo,
> 
> Leo Famulari <address@hidden> skribis:
> 
> > Should we alter the call-with-temporary-directory procedure to use
> > ((guix build utils) delete-file-recursively)?
> 
> Yes, definitely.  Note that you can alter (guix utils) without fear of a
> full rebuild, so you can go ahead and do that in ‘master’.

Great, pushed as 27f7cbc91d1963118e44b14d04fcc669c9618176.

Attachment: signature.asc
Description: PGP signature


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]