From 46558f32c3aebcbaa58850edddfe7a6628db0a83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Tue, 28 Jun 2022 09:35:11 +0200 Subject: Note that with-working-directory isn't thread-safe. --- module/hnh/util/env.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/hnh/util/env.scm b/module/hnh/util/env.scm index ca0e5ea8..18ec0543 100644 --- a/module/hnh/util/env.scm +++ b/module/hnh/util/env.scm @@ -22,6 +22,8 @@ env-pairs))))])) +;; TODO this probably isn't threadsafe... pthreads(7) notes +;; that chdir is shared between all threads. (define-syntax-rule (with-working-directory directory thunk) (let ((old-cwd #f)) (dynamic-wind -- cgit v1.2.3