GNU bug report logs - #75588
[PATCH] guix: utils: Delete temporary output files.

Previous Next

Package: guix-patches;

Reported by: Kierin Bell <fernseed <at> fernseed.me>

Date: Wed, 15 Jan 2025 16:53:02 UTC

Severity: normal

Tags: patch

Done: Kierin Bell <fernseed <at> fernseed.me>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Kierin Bell <fernseed <at> fernseed.me>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 75588 <at> debbugs.gnu.org, Andreas Enge <andreas <at> enge.fr>, Janneke Nieuwenhuizen <janneke <at> gnu.org>
Subject: [bug#75588] [PATCH] guix: utils: Delete temporary output files.
Date: Thu, 16 Jan 2025 10:02:17 -0500
Hi,

Ludovic Courtès <ludo <at> gnu.org> writes:

> AFAICS the current code is fine because ‘template’ is modified by
> ‘mkstemp!’:

Yes, the code is fine --- this was a misunderstanding on my part.

I was doing something unusual that was causing temporary files to
persist, and blamed it on 'call-with-temporary-output-file':

--8<---------------cut here---------------start------------->8---
(call-with-temporary-output-file (lambda (fn port) ... (execlp "swaymsg"
"swaymsg" "exec" "--" "touch" "foo")))
--8<---------------cut here---------------end--------------->8---

Sorry for the noise!

Thanks.

-- 
Kierin Bell




This bug report was last modified 121 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.