Block asyncs when starting inferiors
Because this code deals with global state, like environment variables.
This commit is contained in:
parent
31bd2156f7
commit
e37eb34db6
1 changed files with 82 additions and 80 deletions
|
|
@ -1330,6 +1330,8 @@
|
||||||
|
|
||||||
(define (start-inferior-for-data-extration store store-path guix-locpath
|
(define (start-inferior-for-data-extration store store-path guix-locpath
|
||||||
extra-inferior-environment-variables)
|
extra-inferior-environment-variables)
|
||||||
|
(call-with-blocked-asyncs
|
||||||
|
(lambda ()
|
||||||
(let* ((original-guix-locpath (getenv "GUIX_LOCPATH"))
|
(let* ((original-guix-locpath (getenv "GUIX_LOCPATH"))
|
||||||
(original-extra-env-vars-values
|
(original-extra-env-vars-values
|
||||||
(map (match-lambda
|
(map (match-lambda
|
||||||
|
|
@ -1418,7 +1420,7 @@
|
||||||
((@@ (guix inferior) ensure-store-bridge!) inf)
|
((@@ (guix inferior) ensure-store-bridge!) inf)
|
||||||
(non-blocking-port ((@@ (guix inferior) inferior-bridge-socket) inf))
|
(non-blocking-port ((@@ (guix inferior) inferior-bridge-socket) inf))
|
||||||
|
|
||||||
inf))
|
inf))))
|
||||||
|
|
||||||
(define* (extract-information-from conn long-running-store-connection
|
(define* (extract-information-from conn long-running-store-connection
|
||||||
guix-revision-id commit
|
guix-revision-id commit
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue