mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
services: dbus-service, secret-service: Do not cause (fibers) to be loaded.
* gnu/build/dbus-service.scm (sleep*): Pass #:ensure #f to 'resolve-module'. * gnu/build/secret-service.scm (wait-for-readable-fd): Likewise.
This commit is contained in:
parent
f518882725
commit
e88bf64e6f
2 changed files with 3 additions and 3 deletions
|
@ -64,10 +64,10 @@ (define %dbus-query-timeout 2) ;in seconds
|
|||
;;; which is required at least for the Jami service.
|
||||
(define sleep*
|
||||
(lambda () ;delay execution
|
||||
(if (resolve-module '(fibers) #f)
|
||||
(if (resolve-module '(fibers) #f #:ensure #f)
|
||||
(module-ref (resolve-interface '(fibers)) 'sleep)
|
||||
(begin
|
||||
(format #f "fibers not available -- blocking 'sleep' in use")
|
||||
(format #t "Fibers not available -- blocking 'sleep' in use~%")
|
||||
sleep))))
|
||||
|
||||
;;;
|
||||
|
|
|
@ -62,7 +62,7 @@ (define-syntax with-modules
|
|||
(define (wait-for-readable-fd port timeout)
|
||||
"Wait until PORT has data available for reading or TIMEOUT has expired.
|
||||
Return #t in the former case and #f in the latter case."
|
||||
(match (resolve-module '(fibers) #f) ;using Fibers?
|
||||
(match (resolve-module '(fibers) #f #:ensure #f) ;using Fibers?
|
||||
(#f
|
||||
(log "blocking on socket...~%")
|
||||
(match (select (list port) '() '() timeout)
|
||||
|
|
Loading…
Reference in a new issue