guix: git: Stop using libgit2-shutdown.
* guix/git.scm (with-libgit2): Stop calling (libgit2-shutdown) to prevent segfaults when pointer finalizers are run.
This commit is contained in:
parent
ba773f65f0
commit
b02469d298
13
guix/git.scm
13
guix/git.scm
|
@ -34,13 +34,12 @@
|
||||||
(make-parameter "/var/cache/guix/checkouts"))
|
(make-parameter "/var/cache/guix/checkouts"))
|
||||||
|
|
||||||
(define-syntax-rule (with-libgit2 thunk ...)
|
(define-syntax-rule (with-libgit2 thunk ...)
|
||||||
(dynamic-wind
|
(begin
|
||||||
(lambda ()
|
;; XXX: The right thing to do would be to call (libgit2-shutdown) here,
|
||||||
(libgit2-init!))
|
;; but pointer finalizers used in guile-git may be called after shutdown,
|
||||||
(lambda ()
|
;; resulting in a segfault. Hence, let's skip shutdown call for now.
|
||||||
thunk ...)
|
(libgit2-init!)
|
||||||
(lambda ()
|
thunk ...))
|
||||||
(libgit2-shutdown))))
|
|
||||||
|
|
||||||
(define* (url-cache-directory url
|
(define* (url-cache-directory url
|
||||||
#:optional (cache-directory
|
#:optional (cache-directory
|
||||||
|
|
Loading…
Reference in New Issue